first of all sorry if my english isn’t perfect.

I working on last chapter of my graduation thesis and I have a big problem. I using the package Lasso2 in R and I need to estimate the parameter t with a generalized cross validation. For do that, in the package, there is the gcv function. So I wrote a while loop in R but it don’t working. So I need help.

Code:

```
i=1
tmax=1
t=0
tinc=0.1
while (t<tmax)
model=l1ce(y_m ~ x_m_1+x_l_1+x_r_1+x_m_2+x_l_2+x_r_2+x_m_3+x_l_3+x_r_3+x_4,bound = t, absolute.t=FALSE)
cv=gcv.l1ce(model, type=c("Tibshirani"))
t=t+tinc
i=i+1
```