simulation: Semiparametric Causal Mediation Modeling of Semi-Competing...

Description Usage Arguments Value

View source: R/load.R

Description

A function that simulates different situations.

Usage

1
2
3
4
5
6
7
8
9
simulation(
  simulation_type,
  hypo,
  sample_size = 1000,
  repeat_size = 1000,
  num_of_cores = 1,
  timer = TRUE,
  get_variance = c("a", "b")
)

Arguments

simulation_type

Choices are 1 (unbiasedness) or 2 (coverage).

hypo

Choices are null or alter.

sample_size

a number only effective when simulation_type = 2. Default is 1000.

repeat_size

Default is 1000.

num_of_cores

the number of cores assigned. Default is 1.

timer

will show the progress. Default is TRUE.

Value

simulation returns 6 plots if simulation_type == 1; a data frame containing coverage if simulation_type == 2.


eric40065/CausalAnalysisforSemiCompRisks documentation built on Dec. 20, 2021, 5:28 a.m.