update_dev {SuRF.vs} | R Documentation |
update_dev
Description
This function is to derive the deviance distribution based on the permutation method This function is not to be used independently but will be called by the function selectnew()
Usage
update_dev(data, vslist, C, weights, ncores, family)
Arguments
data |
the variable 'data' within seqcutoff() |
vslist |
a vector of selected variables |
C |
the number of permutation times |
family |
family=stats::gaussian(link="identity"));family=stats::binomial(link="logit");family=list(family="cox");etc. |
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) |
ncores |
the number of cores to use for parallel computation |
Value
dev: a vector of deviance after C permutations (length OF this vector is C)