Learn R Programming

emdi (version 2.2.1)

getResponse: Extract Response Variable from an emdi Object

Description

Methods getResponse.direct, getResponse.ebp and getResponse.fh extract the response variable from an emdi object.

Usage

# S3 method for direct
getResponse(object, ...)

# S3 method for ebp getResponse(object, ...)

# S3 method for fh getResponse(object, ...)

Value

Vector containing the response variable.

Arguments

object

an object of type "emdi", depending on the method either "direct", "ebp" or "fh".

...

additional arguments that are not used in this method.

Details

The generic function getResponse is imported from package nlme and re-exported to make the S3-methods available, even though the nlme package itself is not loaded or attached. For default documentation, see getResponse.

See Also

direct, ebp, fh, getResponse

Examples

Run this code
# \donttest{
# Example for class ebp
emdi_model <- ebp(
  fixed = eqIncome ~ gender + eqsize + cash + self_empl +
    unempl_ben + age_ben + surv_ben + sick_ben + dis_ben + rent + fam_allow +
    house_allow + cap_inv + tax_adj, pop_data = eusilcA_pop,
  pop_domains = "district", smp_data = eusilcA_smp, smp_domains = "district",
  na.rm = TRUE
)

getResponse(emdi_model)
# }

Run the code above in your browser using DataLab