logLik.pmtree: Extract log-Likelihood

Description Usage Arguments Value See Also

View source: R/pmtree-methods.R

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

1
2
## 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 varimp).

...

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)


model4you documentation built on Jan. 20, 2021, 5:09 p.m.