Displaying 20 results from an estimated 2000 matches similar to: "correlation and causality examples"
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl,
I'm using something like:
----------------------- tex.tex ---------------------------
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyvrb}
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}}
\newcommand{\myinput}[1] {\begin{scriptsize}
\VerbatimInput[frame=single,label=#1]{#1}
\end{scriptsize}}
\title{The R logo,
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl,
I'm using something like:
----------------------- tex.tex ---------------------------
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyvrb}
\newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}}
\newcommand{\myinput}[1] {\begin{scriptsize}
\VerbatimInput[frame=single,label=#1]{#1}
\end{scriptsize}}
\title{The R logo,
2009 Nov 16
2
test for causality
Hi useRs..
I cant figure out how to test for causality using causality() in vars
package
I have two datasets (A, B) and i want to test if A (Granger)cause B.
How do I write the script? I dont understand ?causality. How do I get x to
"contain" A and B. Further using the command VAR() to specify x, I dont
either understand.
Kind regards Tobias
--
View this message in context:
2006 Oct 08
2
Size problem with two dotcharts side by side
Dear all,
I'm trying to produce two dotcharts side-by-side within a Sweave
document. When I'm compiling this example:
\documentclass{article}
\begin{document}
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) dotchart(1:10)
@
<<fig=T,width=8,height=4>>=
par(mfrow = c(1, 2), cex = 0.7)
for(i in 1:2) hist(1:10)
@
2006 Jul 12
2
Are infix binary operators ** and ^ aliased?
Dear R-help,
After making a typo (reminiscent of FORTRAN 77, I guess) I found the
following:
> identical(all.equal(2^(-10:10), 2**(-10:10)), TRUE)
[1] TRUE
I have tried to find the documentation about the ** operator but I was
unsuccesful this way:
> sessionInfo()
Version 2.3.1 (2006-06-01)
powerpc-apple-darwin8.6.0
attached base packages:
[1] "methods" "stats"
2006 Jun 01
1
problem when calling help.search() a second time
Dear list,
I would like to make a Sweave document that, for a given package,
automatically inserts the graphical outputs obtained when runing
the example code of high level plot functions. That is, for the
"graphics" base package, something like this:
http://pbil.univ-lyon1.fr/R/fichestd/tdr79.pdf
For this, I need the list of high level plot functions of a
given package. I have
2011 Mar 03
2
Multivariate Granger Causality Tests
Dear Community,
For my masters thesis I need to perform a multivariate granger causality
test. I have found a code for bivariate testing on this page
(http://www.econ.uiuc.edu/~econ472/granger.R.txt), which I think would not
be useful for the multivariate case. Does anybody know a code for a
multivariate granger causality test. Thank you in advance.
Best Regards
--
View this message in context:
2008 Mar 30
2
data(lh) time serie parameters
Dear all,
I'm confused by the time serie parameters in data(lh) :
sueoka:~ lobry$ R --vanilla --quiet
> tsp(lh)
[1] 1 48 1
because documentation says:
QUOTE
A regular time series giving the luteinizing hormone in blood
samples at 10 mins intervals from a human female, 48 samples.
UNQUOTE
So that I would expect the time serie to end at 480 minutes
or 8 hours. Shouldn't we have
2008 Jan 27
4
[OT] vernacular names for circular diagrams
> Dear useRs,
>
> by a circular diagram representation I mean what you will get by entering
> this at your R promt:
>
> pie(1:5)
>
> Nice to have R as a lingua franca :-)
>
> The folowing quote is from page 360 in this very interesting paper:
>
> @article{SpenceI2005,
> title = {No Humble Pie: The Origins and Usage of a Statistical Chart},
>
2011 Apr 14
1
Automatically extract info from Granger causality output
Dear Community,
this is my first programming in R and I am stuck with a problem. I
have the following code which automatically calculates Granger
causalities from a variable, say e.g. "bs" as below, to all other
variables in the data frame:
log.returns<-as.data.frame( lapply(daten, function(x) diff(log(ts(x)))))
y1<-log.returns$bs
y2<- log.returns[,!(names(log.returns) %in%
2011 Apr 04
1
Granger Causality in a VAR Model
Dear Community,
I am new to R and have a question concerning the causality () test in
the vars package. I need to test whether, say, the variable y Granger
causes the variable x, given z as a control variable.
I estimated the VAR model as follows: >model<-VAR(cbind(x,y,z),p=2)
Then I did the following: >causality(model, cause="y"). I thing this
tests the Granger causality of
2010 Dec 01
1
Wiener-Granger Causality Test in R
Hello dudes.
I'm developing VAR analysis based on suggestions made by Horváth in its
paper Canonical Correlation Analysis and Wiener-Granger Causality Tests.
That's the reason I'm looking for if there's any R package to develop Wiener
- Granger Causality Test.
Thanks a lot for your unvaluable help.
Regards from Mexico
[[alternative HTML version deleted]]
2008 Jul 02
2
Optimal lag selection in Granger Causality tests
Dear R Users,
Can someone point me to a R package which will help me optimally choose a
lag for Granger Causality testing ?
Many thanks in advance,
Tolga
Generally, this communication is for informational purposes only
and it is not intended as an offer or solicitation for the purchase
or sale of any financial instrument or as an official confirmation
of any transaction. In the event you are
2006 Apr 19
2
par(tmag) question
Dear list,
I'm trying to understand the graphical parameters by a systematic exploration
of the par() function (if you are interested by the result it's here
http://pbil.univ-lyon1.fr/R/fichestd/tdr75.pdf, the comments are all in
french but it's pure R code under Sweave).
I have a problem with par(tmag) illustrated by the following code:
2008 Feb 25
3
How to include the documentation of a function in a Sweave document?
Dear R-help,
I would like to include the documentation of an R function in an
*.rnw document processed by Sweave. Because I'm sharing my *.rnw
files with colleagues under Linux and Windows (I'm on Mac OS X),
I would like a pure R solution.
The naive approach doesn't work, because Sweaving this *.rnw
file:
-------- tmp.rnw --------
\documentclass{article}
\begin{document}
2007 Jul 24
1
crimtab related question
Dear all,
the dataset documented under ?crimtab was also used in:
@article{TreloarAE1934,
title = {The adequacy of "{S}tudent's" criterion of
deviations in small sample means},
author = {Treloar, A.E. and Wilder, M.A.},
journal = {The Annals of Mathematical Statistics},
volume = {5},
pages = {324-341},
year = {1934}
}
The following is
2009 Nov 20
1
Suggestion for the reproducibility of R home page figure
Dear R-devel,
googling for the single letter R yields R-home page as the firt hit,
which is extremly nice.
By clicking on the figure you get the code of the "Winner of the R
Homepage graphics competition 2004."
By copy/pasting in your R console it doesn't work because it is impossible
to install the mva package.
This is my point.
As documented in ONEWS the reason is simple:
2006 Sep 21
2
Sweave processes \Sexpr in commented LaTeX source
Marc,
>I have a large .Rnw file and was in the process of doing some debugging.
>I had set some R chunks to 'eval=false' in the process. This resulted in
>some R objects not being created that were in turn used in the
>subsequent \Sexpr's.
I have often the same problem, I'm using a construct like :
<<eval=F>>=
x <- rnorm(100)
@
I have
2006 Jun 02
1
error message from help.search()
Dear R-Devel,
consider:
[rufus:~] lobry% R --vanilla --quiet
> sessionInfo()
Version 2.3.0 (2006-04-24)
powerpc-apple-darwin8.6.0
attached base packages:
[1] "methods" "stats" "graphics" "grDevices" "utils" "datasets"
[7] "base"
> help.search(package = "graphics", keyword = "hplot")
>
2009 May 04
1
whish stars.Rd
Dear Rdev,
in R 2.9.0 the doc of function stars() does not state that it
returns invisibly the location of atomic graphs. This is a
valuable information as it may help to set a value for the key.loc
parameter of this function.
My whish is just that the "value" section in stars.Rd should be
documented.
Best,
Pr. Jean R. Lobry
BTW, the URL:,