%global __brp_check_rpaths %{nil} %global packname ppsbm %global packver 0.2.2 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 0.2.2 Release: 3%{?dist}%{?buildtag} Summary: Clustering in Longitudinal Networks License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel Requires: R-core BuildArch: noarch BuildRequires: R-CRAN-Rfast BuildRequires: R-CRAN-clue BuildRequires: R-CRAN-gtools BuildRequires: R-parallel Requires: R-CRAN-Rfast Requires: R-CRAN-clue Requires: R-CRAN-gtools Requires: R-parallel %description Stochastic block model used for dynamic graphs represented by Poisson processes. To model recurrent interaction events in continuous time, an extension of the stochastic block model is proposed where every individual belongs to a latent group and interactions between two individuals follow a conditional inhomogeneous Poisson process with intensity driven by the individuals’ latent groups. The model is shown to be identifiable and its estimation is based on a semiparametric variational expectation-maximization algorithm. Two versions of the method are developed, using either a nonparametric histogram approach (with an adaptive choice of the partition size) or kernel intensity estimators. The number of latent groups can be selected by an integrated classification likelihood criterion. Y. Baraud and L. Birgé (2009). . C. Biernacki, G. Celeux and G. Govaert (2000). . M. Corneli, P. Latouche and F. Rossi (2016). . J.-J. Daudin, F. Picard and S. Robin (2008). . A. P. Dempster, N. M. Laird and D. B. Rubin (1977). . G. Grégoire (1993). . L. Hubert and P. Arabie (1985). . M. Jordan, Z. Ghahramani, T. Jaakkola and L. Saul (1999). . C. Matias, T. Rebafka and F. Villers (2018). . C. Matias and S. Robin (2014). . H. Ramlau-Hansen (1983). . P. Reynaud-Bouret (2006). . %prep %setup -q -c -n %{packname} %build %install mkdir -p %{buildroot}%{rlibdir} %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname} test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so) rm -f %{buildroot}%{rlibdir}/R.css %files %{rlibdir}/%{packname}