logLik.pmtree {model4you} | R Documentation |
Extract log-Likelihood
Description
Extract sum of log-Likelihood contributions of all terminal nodes. By default the degrees of freedom from the models are used but optionally degrees of freedom for splits can be incorporated.
Usage
## S3 method for class 'pmtree'
logLik(object, dfsplit = 0, newdata = NULL, weights = NULL, perm = NULL, ...)
Arguments
object |
pmtree object. |
dfsplit |
degrees of freedom per selected split. |
newdata |
an optional new data frame for which to compute the sum of objective functions. |
weights |
weights. |
perm |
the number of permutations performed (see |
... |
ignored. |
Value
Returns an object of class logLik
.
See Also
objfun.pmtree
for the sum of contributions to the
objective function (not the same when partitioning linear models lm
)
[Package model4you version 0.9-7 Index]