This function is to add new node (new deviance distribution for adding the new variable)
selectnew(
vslist,
ranktable,
data,
weights,
ncores = 1,
family,
alpha_l,
alpha_u,
C
):ranking table from ranking step
:generalized model families
is the minimum significance level(>=0)
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)
no of parallel computing cores
the number of permutation times
the upper significance level
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)
the current list of selected variables
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