Learn R Programming

rpm (version 0.7-3)

logLik.rpm: A logLik method for [`rpm`] fits.

Description

A function to return the log-likelihood associated with an rpm fit

Usage

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

Value

a logLik object.

Arguments

object

An rpm fit, returned by rpm.

...

Other arguments to the likelihood functions.

See Also

logLik, logLikNull

Examples

Run this code
library(rpm)
data(fauxmatching)
# \donttest{
fit <- rpm(~match("edu") + WtoM_diff("edu",3),
          Xdata=fauxmatching$Xdata, Zdata=fauxmatching$Zdata,
          X_w="X_w", Z_w="Z_w",
          pair_w="pair_w", pair_id="pair_id", Xid="pid", Zid="pid",
          sampled="sampled",sampling_design="stock-flow")
logLik(fit)
# }

Run the code above in your browser using DataLab