Re: [R] Granger casuality test in r

2018-11-30 Thread John C Frain
On Fri, 30 Nov 2018 at 14:40, Eneida Permeti via R-help < r-help@r-project.org> wrote: > > The results of my Granger causality test in r are below. VARp is my VAR > model and I have two endogenous variables. From the results, I have only > instantaneous causality. What does it mean?Thank you so

[R] Fw: Granger casuality test in r

2018-11-30 Thread Eneida Permeti via R-help
- Forwarded Message - From: Eneida Permeti To: John C Frain Sent: Friday, November 30, 2018, 9:24:01 AM PSTSubject: Re: [R] Granger casuality test in r Dear JohnThank you for responding me.I have attached my data. I am studying the relationship between Public debt and economic

Re: [R] help with line graphs - rather lengthy to explain need

2018-11-30 Thread David L Carlson
Reformatting helps because your spreadsheet as currently designed is not R-friendly or tidy. R data structures include vectors, matrices, data.frames, and lists. If you try to create your own structure you are just creating problems for yourself. Your numeric data are a matrix - all numbers

Re: [R] Corrupting files while copying (was Re: saveRDS() and readRDS() Why? [solved, pretty much anyway])

2018-11-30 Thread Patrick Connolly
I'd be interested to know if anyone can replicate what I experienced. VBox version: 5.1.22 r115126 (Qt5.6.2) Versions of R and OSes below: On Sun, 18-Nov-2018 at 09:44PM +1300, Patrick Connolly wrote: |> Sequence of steps: |> |> Using R-3.5.1 and Windows 7 with the latest Rstudio, shared

Re: [R] High dimensional optimization in R

2018-11-30 Thread Marc Girondot via R-help
I fit also model with many variables (>100) and I get good result when I mix several method iteratively, for example: 500 iterations of Nelder-Mead followed by 500 iterations of BFGS followed by 500 iterations of Nelder-Mead followed by 500 iterations of BFGS etc. until it stabilized. It can

Re: [R] Correct x-axis of two in one graph

2018-11-30 Thread PIKAL Petr
Hi You cannot expect any code to give you results precisely according to your wishes just out of the box. You could modify x axis by changing format parameter. It is preset to = "%d/%m",so you could change it to "%Y", if you want to display only year. format parameter goes to this line in

Re: [R] Correct x-axis of two in one graph

2018-11-30 Thread Ogbos Okike
Dear Petr, Great!!! It worked. The years are interestingly displayed. Please one thing more. I want all the data points represented by lines only and not points. I tried to change type = type to type="l". But it did work. Thanks for more assistance. Ogbos On Fri, Nov 30, 2018 at 9:24 AM PIKAL

Re: [R] Correct x-axis of two in one graph

2018-11-30 Thread PIKAL Petr
Hi If you wanted only lines you need to set parameter linky to TRUE (sorry, the code is around 15 year old and not mentioned to distribution) and it was extended rather chaotically during years. so plot.yy(..., linky=TRUE) add lines plot.yy(..., linky=TRUE, pch=c(NA,NA)) add lines and remove

[R] Fw: Granger casuality test in r

2018-11-30 Thread Eneida Permeti via R-help
- Forwarded Message - From: Eneida Permeti To: John C Frain Sent: Friday, November 30, 2018, 9:24:01 AM PSTSubject: Re: [R] Granger casuality test in r Dear JohnThank you for responding me.I have attached my data. I am studying the relationship between Public debt and economic

[R] Granger casuality test in r

2018-11-30 Thread Eneida Permeti via R-help
The results of my Granger causality test in r are below. VARp is my VAR model and I have two endogenous variables. From the results, I have only instantaneous causality. What does it mean?Thank you so much > causality(VARp,cause="The.economic.growth") $Granger Granger causality H0: