Extract the log likelihood from a dynrCook Object
1 2 3 4 5
The dynrCook object for which the log likelihood is desired
further named arguments, ignored for this method
The 'df' attribute for this object is the number of freely estimated parameters. The 'nobs' attribute is the total number of rows of data, adding up the number of time points for each person.
deviance method returns minus two times the log likelihood.
In the case of
logLik, an object of class
Other S3 methods
# Let cookedModel be the output from dynr.cook #logLik(cookedModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.