logLik.nls.lm: minpack.lm logLik hack

View source: R/dd_utils.R

logLik.nls.lmR Documentation

minpack.lm logLik hack

Description

This function constructs a class, derived from an nls.lm object, similar to that of the logLik function in nls. This allows for native calls of the AIC and BIC functions from stats, using nls.lm fit objects.

Usage

## S3 method for class 'nls.lm'
logLik(fit, REML = FALSE, ...)

Arguments

fit

nls.lm fitted model

REML

determine whether or not to use ML (FALSE by default)

...

inherit other args as necessary

Value

provide a logLik class for AIC/BIC

Author(s)

Katharine Mullen <kate@few.vu.nl>


miyamot0/discountingtools documentation built on March 21, 2023, 8:59 p.m.