getResponse {povmap}R Documentation

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 class 'direct'
getResponse(object, ...)

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

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

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.

Value

Vector containing the response variable.

See Also

direct, ebp, fh, getResponse

Examples


# 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)


[Package povmap version 1.0.1 Index]