coef.nonprob: Returns coefficients of the underlying models

View source: R/methods.R

coef.nonprobR Documentation

Returns coefficients of the underlying models

Description

Returns a list of coefficients for the selection and the outcome models

Usage

## S3 method for class 'nonprob'
coef(object, ...)

Arguments

object

a nonprob class object

...

other arguments passed to methods (currently not supported)

Value

a list with two entries:

  • "coef_sel" a matrix of coefficients for the selection equation if possible, else NULL

  • "coef_dr" a matrix of coefficients for the outcome equation(s) if possible, else NULL

Examples


data(admin)
data(jvs)

jvs_svy <- svydesign(ids = ~ 1,  weights = ~ weight,
strata = ~ size + nace + region, data = jvs)

ipw_est1 <- nonprob(selection = ~ region + private + nace + size,
target = ~ single_shift,
svydesign = jvs_svy,
data = admin, method_selection = "logit", se = FALSE
)

coef(ipw_est1)


nonprobsvy documentation built on June 8, 2025, 12:36 p.m.