Learn R Programming

nonprobsvy (version 0.2.1)

coef.nonprob: Returns coefficients of the underlying models

Description

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

Usage

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

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

Arguments

object

a nonprob class object

...

other arguments passed to methods (currently not supported)

Examples

Run this code

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)

Run the code above in your browser using DataLab