# logLik.pmtree

0th

Percentile

##### Extract log-Likelihood

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 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.

objfun.pmtree for the sum of contributions to the objective function (not the same when partitioning linear models lm)