Have you considered "predict(regrM)"?
J'espere que ces mots vous aideront.
Spencer Graves
ATHANASIA KAMARIOTIS wrote:
I would like to know how to use the function step with "for" in order
to predict.
Id est:
Let M , A, B ,C be vectors of length 15
for(i in 1:5)
{
regrM<-lm(M[(1+i):(10+i)]~A[(1+
I would like to know how to use the function step with "for" in order
to predict.
Id est:
Let M , A, B ,C be vectors of length 15
for(i in 1:5)
{
regrM<-lm(M[(1+i):(10+i)]~A[(1+i):(10+i)]+B[(1+i):(10+i)]+C[(1+i):
(10+i)])
sregrM<-step(regrM)
and then I would like to compute the predicted valu