constraint_fun_list_maker: contraint function list maker

Description Usage Arguments Value Examples

View source: R/constraint_fun_list_maker.R

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

1

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

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

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