n_par {RNAdecay} | R Documentation

## number of Parameters function

### Description

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

### Usage

    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

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

[Package RNAdecay version 1.3.1 Index]