FAMoS (version 0.1.0)

model.appr: Test for Model Appropriateness

Description

Tests if a model is violating specified critical conditions.

Usage

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

Run this code
# NOT RUN {
#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)
# }

Run the code above in your browser using DataCamp Workspace