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 pmtree
logLik(object, dfsplit = 0, newdata = NULL,
weights = NULL, perm = NULL, ...)
pmtree object.
degrees of freedom per selected split.
an optional new data frame for which to compute the sum of objective functions.
weights.
the number of permutations performed (see varimp
).
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
)