n_par: number of Parameters function

Description Usage Arguments Value Examples

View source: R/n_par.R

Description

Calculates number of parameters for a specified model given the model parameter constraints.

Usage

1
n_par(model, mod, group)

Arguments

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

Value

returns the integer value of number of parameters in model

Examples

1
2
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)))

RNAdecay documentation built on Nov. 8, 2020, 5:52 p.m.