generate_sysmiss_ipdma_example {bipd}R Documentation

Generate a simulated IPD-MA data with systematically missing covariates

Description

Generate a simulated IPD-MA data with systematically missing covariates

Usage

generate_sysmiss_ipdma_example(
  Nstudies = 10,
  Ncov = 5,
  sys_missing_prob = 0.1,
  magnitude = 0.3,
  heterogeneity = 0.1,
  interaction = TRUE
)

Arguments

Nstudies

number of studies. Default is 10.

Ncov

number of covariates in total. Options are 5 or 10 studies. Default is set to 5.

sys_missing_prob

probability of systematically missing studies for each covariates. Default is set to 0.3.

magnitude

magnitude of the regression estimates (the mean). Default is set to 0.2.

heterogeneity

heterogeneity of regression estimates across studies. Default is set to 0.1.

interaction

whether to include treatment indicator and treatment

Value

returns simulated IPD-MA data with systematically missing covariates

Examples

simulated_dataset <- generate_sysmiss_ipdma_example(Nstudies = 10, Ncov = 5, sys_missing_prob = 0.3, 
magnitude = 0.2, heterogeneity = 0.1)
head(simulated_dataset)

[Package bipd version 0.3 Index]