logLik.smle | R Documentation |
This is a method written to extract the log-likelihood from 'smle'
and 'selection'
objects.
It refits the model by glm()
based on the response and the features selected after screening or selection,
and returns an object of 'logLik'
from the generic.
## S3 method for class 'smle' logLik(object, ...) ## S3 method for class 'selection' logLik(object, ...)
object |
An object of class |
... |
Forwarded arguments. |
Returns an object of class 'logLik'
. This is a number with at least one attribute,
"df"
(degrees of freedom), giving the number of (estimated) parameters in the model. For more details, see the generic logLik()
in stats.
set.seed(1) Data<-Gen_Data(n=100, p=5000, family = "gaussian", correlation="ID") fit<-SMLE(Y=Data$Y, X=Data$X, k=9, family = "gaussian") logLik(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.