| logLik.tramnet | R Documentation |
"tramnet"logLik method for class "tramnet"
## S3 method for class 'tramnet'
logLik(
object,
parm = coef(object, tol = 0, with_baseline = TRUE, scaled = TRUE),
w = NULL,
newdata,
...
)
object |
object of class |
parm |
parameters to evaluate the log likelihood at (for models fitted via the formula interface, shift parameters refer to the scaled covariates) |
w |
weights, defaults to the weights used for fitting |
newdata |
data to evaluate the log likelihood at |
... |
Additional arguments to logLik |
returns potentially weighted (w) log-likelihood based on
object evaluated at parameters parm and data newdata.
If newdata is missing, the penalized log-likelihood of the training
data is returned, otherwise the (unpenalized) out-of-sample
log-likelihood
Lucas Kook, Torsten Hothorn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.