Re: [R] require help

2017-12-27 Thread PIKAL Petr
Hi Did you mean wald.test? If not, what is wal.test? Instead of attaching anything (which is usually stripped from the mail), you should copy your code directly to your mail and preferably together with your data. See ?dput Cheers Petr > -Original Message- > From: R-help [mailto:r-h

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

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 <-