Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


psborrow2 (version 0.0.4.0)

sim_covariate_list: Input covariate adjustment details for a simulation study

Description

A function for defining which covariate adjustment scenarios should be evaluated as part of a simulation study.

Usage

sim_covariate_list(covariate_list)

Value

Object of class SimCovariateList.

Arguments

covariate_list

named list of objects of class Covariate created by add_covariates().

Details

This function allows the user to specify covariate adjustment details that will be included as part of a simulation study. It is often of interest to compare several adjustment methods to no adjustment. To specify no adjustment, pass NULL as a list item to covariate_list.

See Also

Other simulation classes: sim_borrowing_list(), sim_data_list(), sim_outcome_list(), sim_treatment_list()

Examples

Run this code

covariates <- sim_covariate_list(
  list(
    "No adjustment" = NULL,
    "Covariates 1 and 2" = add_covariates(c("cov1", "cov2"), prior_normal(0, 1000))
  )
)

Run the code above in your browser using DataLab