Re: [R] Quantmod several indicators

2015-09-25 Thread giorgio.garzi...@tin.it
Hi,
Both following code examples plot bollinger band over the ticker main plotand 
Williams Power below the main plot.
1. chartSeries(YHOO,theme="white",TA = c(addBBands(200,2), addWPR(n=300)))
2. chartSeries(IB,theme="white",TA = c(addBBands(200,2)))   addWPR(n=300)
See:
http://around-r.blogspot.it/2015/04/financial-data-exploratory-analysis_27.html
for examples.
In general, if you like to plot indipendently a trading indicator computed by 
quantmod, you can do:
wpr <- addWPR(n=300)plot(wpr@TA.values, type='l')   -- or any other R plot 
library you like
as in @TA.values are stored trading indicator values for any indicator.

Giorgio Garziano 

 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Analysis of causal relations between rare (categorical) events

2015-09-26 Thread giorgio.garzi...@tin.it
Also:

https://cran.r-project.org/web/views/Survival.html
https://www.youtube.com/watch?v=1Mt7EuVJf1A

http://gking.harvard.edu/files/gking/files/0s.pdf?m=1360039053
http://biostat.mc.vanderbilt.edu/wiki/pub/Main/RmS/rms.pdf

---
Giorgio Garziano

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.