Re: [R] Help! I need to use R to calculate a recursive function!

2010-03-09 Thread anan1986
I tried! but my solution is not correc! -- View this message in context: http://n4.nabble.com/Help-I-need-to-use-R-to-calculate-a-recursive-function-tp1586189p1586590.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.or

[R] Help! I need to use R to calculate a recursive function!

2010-03-09 Thread anan1986
hi,all Z(i)=0.05X(i)+0.95Z(i-1), where i = 1.32, and X's are given data, the question is how to use r to get the 32 values of Z. I couldn't do this in R and wish somebody can help me. thanks in regards -- View this message in context: http://n4.nabble.com/Help-I-need-to-use-R-to-calcul