Re: [R] require help

2017-12-27 Thread PIKAL Petr
ilto:r-help-boun...@r-project.org] On Behalf Of yadav neog > Sent: Wednesday, December 27, 2017 8:05 PM > To: dnew...@dcn.davis.ca.us; R mailing list > Subject: [R] require help > > Respected sir, > hoping that you are well.sir, i am trying to run Tado-Yamamoto causality test >

Re: [R] require help

2017-12-27 Thread R. Mark Sharp
Yadav, We need some information that is missing in order to help you. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 75

[R] require help

2017-12-27 Thread yadav neog
Respected sir, hoping that you are well.sir, i am trying to run Tado-Yamamoto causality test with my data. I have three variables. but in running wal.test in R, I have faced problems (especially in 'terms' arguments). my results have shown as... Error in L %*% V : non-conformable arguments -- kin

Re: [R] require help

2017-09-22 Thread Joshua Ulrich
On Fri, Sep 22, 2017 at 7:28 AM, yadav neog wrote: > thankx to everyone for your valuable suggestions. one query regarding the > GARCH model. > I have applied the GARCH model for the same data that I send you all . and > my results coming like > > Error in .sgarchfit(spec = spec, data = data, out.

Re: [R] require help

2017-09-22 Thread yadav neog
thankx to everyone for your valuable suggestions. one query regarding the GARCH model. I have applied the GARCH model for the same data that I send you all . and my results coming like Error in .sgarchfit(spec = spec, data = data, out.sample = out.sample, : ugarchfit-->error: function requires a

Re: [R] require help

2017-09-21 Thread Gabor Grothendieck
Assuming the input data.frame, DF, is of the form shown reproducibly in the Note below, to convert the series to zoo or ts: library(zoo) # convert to zoo z <- read.zoo(DF) # convert to ts as.ts(z) # Note: DF <- structure(list(year = c(1980, 1981, 1982, 1983, 1984), cnsm = c(174, 175, 175, 17

Re: [R] require help

2017-09-16 Thread yadav neog
oky.. thank you very much to all of you On Sat, Sep 16, 2017 at 2:06 PM, Eric Berger wrote: > You can just use the same code that I provided before but now use your > dataset. Like this > > df <- read.csv(file="data2.csv",header=TRUE) > dates <- as.Date(paste(df$year,"-01-01",sep="")) > myXts <

Re: [R] require help

2017-09-16 Thread Eric Berger
You can just use the same code that I provided before but now use your dataset. Like this df <- read.csv(file="data2.csv",header=TRUE) dates <- as.Date(paste(df$year,"-01-01",sep="")) myXts <- xts(df,order.by=dates) head(myXts) #The last command "head(myXts)" shows you the first few rows of the x

Re: [R] require help

2017-09-15 Thread Berend Hasselman
> On 15 Sep 2017, at 11:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. > kindly help me. > also using zoo and xts packages. but they take only monthly observations. > >

Re: [R] require help

2017-09-15 Thread yadav neog
thanks, eric../ actually I have the data which have not specify the months. therefore i bound to declare is in yearly data. i also attached a sample data set that may be helpful for you to providing suggestions. thank you On Fri, Sep 15, 2017 at 5:23 PM, Ismail SEZEN wrote: > > > On 15 Sep 2017,

Re: [R] require help

2017-09-15 Thread Berend Hasselman
> On 15 Sep 2017, at 16:35, Berend Hasselman wrote: > >> >> On 15 Sep 2017, at 11:38, yadav neog wrote: >> >> hello to all. I am working on macroeconomic data series of India, which in >> a yearly basis. I am unable to convert my data frame into time series. >> kindly help me. >> also using z

Re: [R] require help

2017-09-15 Thread Berend Hasselman
> On 15 Sep 2017, at 11:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. > kindly help me. > also using zoo and xts packages. but they take only monthly observations. > >

Re: [R] require help

2017-09-15 Thread Ismail SEZEN
> On 15 Sep 2017, at 12:38, yadav neog wrote: > > hello to all. I am working on macroeconomic data series of India, which in > a yearly basis. I am unable to convert my data frame into time series. Do you really need to convert your data to time series/xts/zoo? I don’t know you try what kind

Re: [R] require help

2017-09-15 Thread Eric Berger
You did not provide the data frame so I will first create one and then use it to create an xts library(xts) df <- data.frame( year=1980:2009, cnsm=sample(170:180,30,replace=TRUE), incm=rnorm(30,53,1), wlth=rnorm(30,60,1)) dates <- as.Date(paste(df$year,"-01-01",sep="")) myXts <-

[R] require help

2017-09-15 Thread yadav neog
hello to all. I am working on macroeconomic data series of India, which in a yearly basis. I am unable to convert my data frame into time series. kindly help me. also using zoo and xts packages. but they take only monthly observations. 'data.frame': 30 obs. of 4 variables: $ year: int 1980 1981