View source: R/panelGompertzLikelihood.R
| panelGompertzLikelihood | R Documentation | 
Evaluates the likelihood function for a panel Gompertz model, using a format convenient for maximization by optim() to obtain a maximum likelihood estimate. Specifically, estimated and fixed parameters are supplied by two different arguments.
panelGompertzLikelihood(x, panelPompObject, params)
x | 
 named vector for a subset of parameters, corresponding to those being estimated.  | 
panelPompObject | 
 a panel Gompertz model.  | 
params | 
 named vector containing all the parameters of the panel Gompertz model. Estimated parameters are overwritten by x.  | 
A numeric value.
Edward L. Ionides
pg <- panelGompertz(N=2,U=2)
panelGompertzLikelihood(coef(pg),pg,coef(pg))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.