compute_max_length: Maximum number of the regressions

Description Usage Arguments Value References See Also Examples

View source: R/carrot_functions.R

Description

Function which computes the maximum number of regressions with fixed number of variables based on the rule of thumb

Usage

1
compute_max_length(vari_col,k,c,we,minx,maxx,st)

Arguments

vari_col

number of predictors

k

maximum weight of the predictors

c

array of all indices of the predictors

we

array of weights of the predictors. Continuous or categorical numerical variable with more then 5 categories has weight 1, otherwise it has weight n-1 where n is the number of categories

minx

minimum number of predictors, 1 by default

maxx

maximum number of predictors, total number of variables by default

st

a subset of predictors to be always included into a predictive model

Value

Integer correponding to maximum number of regressions of the same size

References

\insertRef

ref1CARRoT

\insertRef

ref2012-18631-001CARRoT

See Also

Function uses combn

Examples

1
compute_max_length(4,40,1:4,c(1,1,2,1))

CARRoT documentation built on June 8, 2021, 5:09 p.m.