generate_xmat: Generate simulated X matrix (i.e. design matrix excluding...

Description Usage Arguments Value Examples

View source: R/generate_xmat.R

Description

Generate simulated X matrix (i.e. design matrix excluding intercept)

Usage

1
2
generate_xmat(npergroup, type = c("xs", "long"), savecsv = FALSE,
  file = "")

Arguments

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.

Value

a data.frame object of X matrix

Examples

1
2
library(neurorct)
generate_xmat(npergroup = 30, type = "xs")

seonjoo/neurorct documentation built on May 7, 2020, 3:18 a.m.