View source: R/constraint_fun_list_maker.R
constraint_fun_list_maker | R Documentation |
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.
constraint_fun_list_maker(mods, groups)
mods |
data.frame specifying alpha and beta group pairs for each model |
groups |
grouping matrix for alphas or betas |
Returns a list of constraint functions to be passed to the optimization function.
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.