powered by
Estimate a Poisson model with random effects in panel counting data. Note this model is different with the Poisson Lognormal model for counting data.
PoissonRE(formula, id, data = NULL, par = NULL, sigma = 1, max_sigma = 3, method = "BFGS", lower = NULL, upper = NULL, H = 20, accu = 10, reltol = 1e-08, verbose = 0, tol_gtHg = Inf)
A list containing the results of the estimated model
Formula of the model
A vector that represents the identity of individuals, numeric or character
Input data, a data frame
Starting values for estimates
Variance of random effects on the individual level
Largest allowed initial sigma
Searching algorithm, don't change default unless you know what you are doing
Lower bound for estiamtes
Upper bound for estimates
A vector of length 2, specifying the number of points for inner and outer Quadratures
L-BFGS-B only, 1e12 for low accuracy; 1e7 for moderate accuracy; 10.0 for extremely high accuracy. See optim
Relative convergence tolerance. default typically 1e-8
Level of output during estimation. Lowest is 0.
tolerance on gtHg, not informative for L-BFGS-B
Other PanelCount: CRE_SS; CRE; PLN_RE; ProbitRE
CRE_SS
CRE
PLN_RE
ProbitRE
# \donttest{ data(rt) est = PoissonRE(num.words~fans+tweets+as.factor(tweet.id), id=rt$user.id[rt$isRetweet==1], data=rt[rt$isRetweet==1,]) # }
Run the code above in your browser using DataLab