simulate_general_outcome_data: Simulate outcome data

simulate_general_outcome_dataR Documentation

Simulate outcome data

Description

Simulate outcome data

Usage

simulate_general_outcome_data(
  nsims = 50,
  nsubj = 400,
  means = matrix(0, 4, 4, dimnames = list(t = 0:3, a = 0:3)),
  covar = {
     R <- matrix(0.5, 4, 4)
     diag(R) <- 1
     5^2 * R
 },
  ...
)

Arguments

nsims

Number of sets of outcome data to simulate

nsubj

Number of subjects

means

The mean at each time point in each arm

covar

The co-variance structure between time points (assumed equal across all arms)

Value

A data.table giving outcome data


jatotterdell/mfittrial documentation built on Sept. 30, 2022, 12:23 p.m.