Learn R Programming

FindMinIC (version 1.6)

FindMinIC-internal: FindMinIC internal functions

Description

These are internal functions used by FindMinIC. These should generally not be used directly.

Usage

splitvars(fixed) getx(formula) gety(formula) getIC(fit, ictype)

Arguments

fixed
a list of strings
formula
a formula object
fit
a model fit object such as an object returned by lm
ictype
type of IC to use, options are "AIC", "AICc", "BIC"

Value

see details above

Details

splitvars splits the variables in fixed into their component variables. For instance, splitvars(c("A","B",C*A","-1","A:D","E:F:G","H|I/J")) will return c("A","B","C","1", "D", "E","F","G","H","I","J"

getx and gety will return the x and y sides of the given formula respectively

getIC returns the AIC, AICc, or BIC for the given model based on which type was passed in )

See Also

FindMinIC which should be used directly instead of these methods.