I am running a forward selection regression model with 20,000 gene expressions in R:
select.genes.fwd = SignifReg(lm(log_daystodeath ~ . -
patient_ID - age - vitalstatus - daystodeath -
pathologicstage - gender - radiationtherapy -
number_packs_smoked_per_year - race,
data = lungCancerData, na.action = na.omit),
direction = "forward", criterion = "AIC",
correction = "None", trace = F)
and I am getting an error message that reads:
Error: protect(): protection stack overflow
I have already tried increasing the R_MAX_VSIZE=100Gb
in .Renviron
from my command line and I've also tried
R --max-ppsize=5000000
within my command line and reran my model in R Markdown, but I still get the same error message.