fixef: Extract Fixed Effects from an emdi Object

fixefR Documentation

Extract Fixed Effects from an emdi Object

Description

Methods fixef.ebp and fixef.fh extract the fixed effects from an emdi object of class "ebp" or "fh".

Usage

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

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

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

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

Arguments

object

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

...

additional arguments that are not used in this method.

Details

The alias fixed.effects can also be used instead of fixef. The generic function fixef 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 fixed.effects.

Value

For classes "ebp" and "fh" a vector containing the fixed effects is returned.

See Also

ebp, fh, fixed.effects

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
)

fixef(emdi_model)


emdi documentation built on Nov. 5, 2023, 5:07 p.m.

Related to fixef in emdi...