gen_Xn | R Documentation |
Constructs design matrix using given sample size(s). Used for assurance analysis in the Bayesian setting.
gen_Xn(n)
n |
vector of sample sizes. Length of |
Xn: a design matrix that can be used to assess the Bayesian assurance through Monte Carlo sampling using functions presented in this package.
gen_Xn_longitudinal
## In the following example, notice that passing in a vector ## of length 4 returns a design matrix of column dimension 4, where ## each column is comprised of ones vectors with lengths that correspond ## to the inputted sample sizes. n <- c(1,3,5,8) gen_Xn(n = n)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.