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

2010-03-09 Thread Sharpie
anan1986 wrote: > > I tried! but my solution is not correc! > What is not correct? What did you try? You need to supply us with details! Specifically, the details that are mentioned in the posting guide for this mailing list: http://www.r-project.org/posting-guide.html "Data! Data! Data

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

2010-03-09 Thread GlenB
Please show your attempt that didn't work. What do you do for Z(1)? (You could try looking at the help on filter) -- View this message in context: http://n4.nabble.com/Help-I-need-to-use-R-to-calculate-a-recursive-function-tp1586189p1586777.html Sent from the R help mailing list archive at Na

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

2010-03-09 Thread Barry Rowlingson
On Tue, Mar 9, 2010 at 9:06 PM, anan1986 wrote: > > 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. Then s

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

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

2010-03-09 Thread Barry Rowlingson
On Tue, Mar 9, 2010 at 4:01 PM, anan1986 wrote: > > 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. Can you do anything in R? Have you tried? Have

[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