Learn R Programming

emdi (version 2.2.1)

getGroupsFormula: Extract Grouping Formula from an emdi Object

Description

Methods getGroupsFormula.direct, getGroupsFormula.ebp and getGroupsFormula.fh extract the grouping formula from an emdi object.

Usage

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

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

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

Value

A one-sided formula.

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 getGroupsFormula 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 getGroupsFormula.

See Also

direct, ebp, fh, getGroupsFormula

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
)

getGroupsFormula(emdi_model)
# }

Run the code above in your browser using DataLab