I have two ideas about it.
1-
i) Entering variables in quadratic form is done with the command I
(variable ^ 2) -
plsr (octane ~ NIR + I (nir ^ 2), ncomp = 10, data = gasTrain, validation =
"LOO"
You could also use a new variable NIR_sq <- (NIR) ^ 2
ii) To insert a square variable, use syntax I (
Hi R helpers,
I have a problem on a zero-inflated binomial distribution.
I have many regressions and few observations for which I wanted to apply
the LASSO regression.
Is there a package that allows the ZIB-Lasso?
Thank you very much!
[[alternative HTML version deleted]]
_
2 matches
Mail list logo