Re: [R] How to formulate quadratic function with interaction terms for the PLS fitting model?

2017-07-13 Thread Luigi Biagini
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

[R] Zero inflated Binomial Lasso

2017-07-08 Thread Luigi Biagini
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]]