constraint_fun_list_maker: contraint function list maker

View source: R/constraint_fun_list_maker.R

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


reedssorenson/RNAdecay documentation built on Oct. 28, 2023, 11:31 a.m.