O, I did run it, but I didn't look in the correct spot >.< Thanks haha
I was so confused with this data set, as in previous assignments I only had to use 'regular' csv-tables.
So now I tried to do the analysis with the data the way it is. The first question is: Estimate the prediction error for a lasso model where lambda is chosen using cross validation. Report the (i) MSE and (ii) the optimal lambda (the minimum value).
So I started by entering:
folds <- split(sample(1:nrow(sugar)), 1:10)
In my script.
Result in the console:
Error in 1:nrow(sugar) : argument of length 0
Does this 'argument of length 0' have anything to do with the way the data is stored?