Learn R Programming

BayesERtools (version 0.2.0)

extract_ermod: Extract elements from an object of class ermod_*

Description

Extract elements from an object of class ermod_*

Usage

# S3 method for ermod
extract_data(x)

# S3 method for ermod extract_mod(x)

# S3 method for ermod extract_var_resp(x)

# S3 method for ermod extract_var_exposure(x)

# S3 method for ermod extract_var_cov(x)

# S3 method for ermod_exp_sel extract_exp_sel_list_model(x)

# S3 method for ermod_exp_sel extract_exp_sel_comp(x)

# S3 method for ermod_cov_sel extract_var_selected(x)

Value

  • extract_data() extracts data used for the model fit.

  • extract_mod() extracts the model fit object.

  • extract_var_resp() extracts the response variable name

  • extract_var_exposure() extracts the exposure metric name

  • extract_var_cov() extracts the covariates name

  • extract_exp_sel_list_model() extracts the list of fitted models for each exposure metrics.

  • extract_exp_sel_comp() extracts the comparison results of the exposure metrics.

  • extract_var_selected() extracts the selected variables (both exposure and covariates)in the final model after covariate selection.

Arguments

x

An object of class ermod_*