View source: R/pmtree-methods.R
logLik.pmtree | R Documentation |
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.
## S3 method for class 'pmtree'
logLik(object, dfsplit = 0, newdata = NULL, weights = NULL, perm = NULL, ...)
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. |
Returns an object of class logLik
.
objfun.pmtree
for the sum of contributions to the
objective function (not the same when partitioning linear models lm
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.