[R] predict

2003-07-15 Thread ATHANASIA KAMARIOTIS
Good afternoon,

Can you please tell me how R computes :  predict(ar.x)$pred 
in :

#let x be a vector

ar.x-ar(x)
predict(ar.x)$pred

Thank you

Bye

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] Step - wise

2003-07-01 Thread ATHANASIA KAMARIOTIS
Madame , Monsieur,
J'aimerais utiliser la fonction step dans une boucle for pour pouvoir 
prédire des valeurs (à chaque pas) suivant le modèle proposé par step.
Est-il possible de le faire ?

Merci d'avance,
Cordialement
Athanasia

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] step-wise and prediction

2003-07-01 Thread ATHANASIA KAMARIOTIS
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 value : M* of M, using 
the predictors selected by the function step.
For example if i=1 and step gives us the model M~A,
then in the for, I want to compute M* by the means of A[11], and 
compare this value to the real value M[11] and so on.



Merci d'avance ,
Cordialement 
Athanasia

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help