search for: dat_sub2

Displaying 1 result from an estimated 1 matches for "dat_sub2".

Did you mean: dat_sub3
2013 May 11
1
prediction in a loop with only one sample
...920 observations. I want to create a loop which takes 300 of these observations for the prediction and the rest to estimate the model. My idea was to create something like this: cs.training.dat <- read.table... cs.training.dat_sub1 <- subset(cs.training.dat, Income>10) cs.training.dat_sub2 <- subset(cs.training.dat_sub1, Dept.Ratio<=1) cs.training.dat_sub3 <- subset(cs.training.dat_sub2, Credit.Limit.Ratio<=1) for (i in 1:500){ y.2 <- cs.training.dat_sub3$y[1+[i]:300+[i]] y.1 <- cs.training.dat_sub3$y[-(1+[i]:300+[i])] NTimes.60DaysLate.2 <- (cs.training.dat_sub...