[R] Multiply variable by condition

2012-06-01 Thread jfca283
Hi I need to do something very simple. I have 2 variables, Y and M. I need to multiply Y by 1 if M=1, by 2 if M=3 and by 3.6678 if M=9. How do i make it? Thanks for your time and interest -- View this message in context: http://r.789695.n4.nabble.com/Multiply-variable-by-condition-tp4632086.html

[R] garchSim with starting error and variance given?

2012-02-10 Thread jfca283
Hello i need to simulate data for and arch and garch process, n=1000. I've been generating arch and garch data but i can't find the way to set an starting error, epsilon(t=0) and sigma(t=0) to run the command garchSim(). I generated the process on Excel and i know that for the Arch process has a

[R] Simulate AR(1) starting from X number?

2012-01-08 Thread jfca283
Hi i run arima.sim(n=100,n.start=9,list(ar=c(0.4)),sd=sqrt(3)), but i need that the firs value be 9, i mean x_(-1). Thanks -- View this message in context: http://r.789695.n4.nabble.com/Simulate-AR-1-starting-from-X-number-tp4276550p4276550.html Sent from the R help mailing list archive at

Re: [R] Simulate AR(1) starting from X number?

2012-01-08 Thread jfca283
Yes, it's work for my class. -- View this message in context: http://r.789695.n4.nabble.com/Simulate-AR-1-starting-from-X-number-tp4276550p4277462.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] VaR package, where is it?

2011-12-16 Thread jfca283
Hi I need to perform some analysis about risk management portfolio. There is a reference to a VaR package, however, i can't find it. It was deprecated? Or it's inside now of another package? Thanks. -- View this message in context: