[R] poisson lognormal regression
Ruben Roa Ureta
rroa at udec.cl
Thu Sep 17 14:47:45 CEST 2009
> Dear all,
> I want to directly write the loglike function of poisson- lognormal
> regression and then estimate the parameters. the response (Y)is count
> and I have two explanatory variable (x1:nominal) and (x2:continiuouse).
> which package in R can be used ?.How can input the data and write the
> loglike function and then optimize.
> regards
I suggest you define a function with the process model and the likelihood
and then use nlm to minimiza the negative log-likelihood. See the examples
at the end of the nlm help.
HTH
Ruben
More information about the R-help
mailing list