Description Usage Arguments Value Examples
View source: R/generate_xmat.R
Generate simulated X matrix (i.e. design matrix excluding intercept)
1 2 | generate_xmat(npergroup, type = c("xs", "long"), savecsv = FALSE,
file = "")
|
npergroup |
sample size in each of the two groups. |
type |
specify study type. 'xs': Cross-sectional; 'long':longitudinal. |
savecsv |
if savecsv = TRUE, save result to csv file. |
outfile |
the name or connection of the file where the csv file is saved to. |
a data.frame object of X matrix
1 2 | library(neurorct)
generate_xmat(npergroup = 30, type = "xs")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.