model.appr: Test for Model Appropriateness

Description Usage Arguments Value Examples

View source: R/model_appr_function.R

Description

Tests if a model is violating specified critical conditions.

Usage

1
model.appr(current.parms, critical.parms, do.not.fit = NULL)

Arguments

current.parms

A vector containing the indices of the current model.

critical.parms

A list containing vectors which specify the critical parameter sets. Needs to be given by index and not by name (for conversion see set.crit.parms).

do.not.fit

A vector containing the indices of the parameters that are not to be fitted.

Value

TRUE, if the model is appropriate, FALSE, if it violates the specified critical conditions.

Examples

1
2
3
4
5
6
7
8
9
#define the models to be checked
model1 <- c(1,2,5)
model2 <- c(1,4,5)
#define the critical conditions
crits <- list(c(2,3))

#test the models
model.appr(current.parms = model1, critical.parms = crits)
model.appr(current.parms = model2, critical.parms = crits)

FAMoS documentation built on April 14, 2020, 5:43 p.m.