simulate_general_outcome_data | R Documentation |
Simulate outcome data
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 }, ... )
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) |
A data.table giving outcome data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.