set.crit.parms: Convert Critical and Swap Sets

Description Usage Arguments Details Value Examples

View source: R/set_crit_parms_function.R

Description

Converts the user-specified list containing the names of the critical or swap parameters into a format that is more convenient for calculations.

Usage

1
set.crit.parms(critical.parameters, all.names)

Arguments

critical.parameters

A list containing vectors which specify either critical parameter sets or swap parameter sets (see Details).

all.names

A vector containing the names of all parameters.

Details

Critical sets are parameters sets, of which at least one per set has to be present in each tested model. If a model violates on of the critical conditions, it will not be fitted (see also model.appr). On the other hand, swap parameter sets define which parameters are interchangeable. For more information see famos.

Value

A list containing the indices of the respective critical or swap sets.

Examples

1
2
3
4
5
#set critical set and names
crits <- list(c("p1", "p2"), c("p5"))
par.names <- c("p1", "p2", "p3", "p4", "p5")
#convert the critical conditions
set.crit.parms(critical.parameters = crits, all.names = par.names)

FAMoS documentation built on May 26, 2019, 5 p.m.