selectnew {SuRF.vs} | R Documentation |
selectnew
Description
This function is to add new node (new deviance distribution for adding the new variable)
Usage
selectnew(
vslist,
ranktable,
data,
weights,
ncores = 1,
family,
alpha_l,
alpha_u,
C
)
Arguments
ranktable |
:ranking table from ranking step |
family |
:generalized model families |
alpha_l |
is the minimum significance level(>=0) |
data |
the dataframe should be arranged in the way such that columns are X1,X2,X3....,Xp, status. Where Xi's are variables and status is the outcome(for the logistic regression, the outcome is in terms of 0/1) |
ncores |
no of parallel computing cores |
C |
the number of permutation times |
alpha_u |
the upper significance level |
weights |
In a binomial model, weights: =TRUE: if weighted version is desired; =FALSE, otherwise ; In other models,weights: =vector of weights of the same size as the sample size N: if weighted version is desired;=FALSE, otherwise (other generalized model) |
vslist |
the current list of selected variables |
Value
vslist: the updated list of selected variables
dev.dist: deviance distributions used for selecting the new variable
vtlist has 1)alpha.range for the newly selected variable,2)selvar: the newly selected variable name,3)pval: pvalue for the newly selected varaible,and 4)dev: the deviance value contributed by the newly selected variable