n_par | R Documentation |
Calculates number of parameters for a specified model given the model parameter constraints.
n_par(model, mod, group)
model |
model name (e.g. 'mod1') |
mod |
two column data.frame with combination of alpha and beta grouping numbers in each model with rownames 'modX' |
group |
matrix of all treatment alpha or beta equivalence groups |
returns the integer value of number of parameters in model
n_par('mod1',data.frame('a'=1:5,'b'=rep(2,5),row.names=paste0('mod',1:5)),
t(matrix(c(1,2,3,4,1,2,2,2,1,1,2,2,1,1,1,2,1,2,1,2,1,2,2,1),nrow=4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.