constraint_fun_list_maker {RNAdecay} | R Documentation

## contraint function list maker

### Description

Individual double exponential models are all nested within model number 1 in which alpha and beta parameters vary independently for each treatment. Models that assume no difference in parameters between specific treatments manifest as constraints in the modeling. These constraints are coded as functions that are passed to the optimization process. Each model has a distinct constraint function.

### Usage

    constraint_fun_list_maker(mods, groups)

### Arguments

`mods` | data.frame specifying alpha and beta group pairs for each model
`groups` | grouping matrix for alphas or betas

### Value

Returns a list of constraint functions to be passed to the optimization function.

### Examples

    constraint_fun_list_maker(mods = data.frame(a = c(1,1,1,2,2,2), b = c(1,2,3,1,2,3),
                              row.names = paste0('mod',1:6)),
                              groups = data.frame(treat1 = c(1,1,NA), treat2 = c(2,1,NA)))

[Package RNAdecay version 1.2.1 Index]