Description Usage Arguments Value Author(s) Examples
The function allows for a relatively simple description of covariates for patients in a clinical trial and then the subsequent simulation of a cohort of the necessary size.
1 | simPats(npat, factList)
|
npat |
The number of patients to simulate. |
factList |
A list containing either functions that will be called or named vectors containing relative proportions, for factors. |
A data.frame with npat
rows and one column for each variable
given in the factList
.
RG and VC
1 2 3 4 5 6 |
center sex age
1 C4 Male 66.05491
2 C4 Female 64.34727
3 C1 Male 56.67722
4 C4 Female 66.65953
5 C3 Male 50.27019
C1 C2 C3 C4
47 19 7 27
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.