Learn R Programming

flexFitR (version 1.2.2)

logLik.modeler: Extract Log-Likelihood for an object of class modeler

Description

logLik for an object of class modeler

Usage

# S3 method for modeler
logLik(object, ...)

Value

A tibble with the Log-Likelihood for the fitted models.

Arguments

object

An object inheriting from class modeler resulting of executing the function modeler()

...

Further parameters. For future improvements.

Author

Johan Aparicio [aut]

Examples

Run this code
library(flexFitR)
dt <- data.frame(X = 1:6, Y = c(12, 16, 44, 50, 95, 100))
mo_1 <- modeler(dt, X, Y, fn = "fn_lin", param = c(m = 10, b = -5))
plot(mo_1)
logLik(mo_1)

Run the code above in your browser using DataLab