getData: Extract emdi Object Data

getDataR Documentation

Extract emdi Object Data

Description

Methods getData.direct, getData.ebp and getData.fh extract the data frame used to fit the model.

Usage

## S3 method for class 'direct'
getData(object, ...)

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

## S3 method for class 'fh'
getData(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 getData 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 getData.

Value

Data frame used to fit the model. For classes "direct" and "ebp" the (untransformed) sample data is returned. For class "fh" the combined data set is returned.

See Also

direct, ebp, fh, getData

Examples


# Example for class direct
emdi_direct <- direct(
  y = "eqIncome", smp_data = eusilcA_smp,
  smp_domains = "district", weights = "weight", threshold = 11064.82,
  var = TRUE, boot_type = "naive", B = 50, seed = 123, X_calib = NULL,
  totals = NULL, na.rm = TRUE
)

getData(emdi_direct)


SoerenPannier/emdi documentation built on Nov. 2, 2023, 7:54 p.m.