Hi,
Can someone help me out to create a (for?) loop for the following procedure:

x=rnorm(250,0,0.02)                                
library(timeSeries)                                   
x=timeSeries(x)                                      
P=1000                                                 
loss=-P*x                                              
loss                                                      
v95=quantile(loss,0.95)                            
v95

I would like to generate 100 000 v95 values.
Also, can anybody name a source where I could read up basic programming in
R?
Thank you.

--
View this message in context: 
http://r.789695.n4.nabble.com/Loop-noob-question-tp3721500p3721500.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to