[R] QQ plot

2012-02-17 Thread nandan amar
Hello, I am having two data set original and predicted. I want to dind QQ-plot fot it. I tried in following manner : qq(original~predicted) and error was : Error in qq.formula(o ~ p) : y must have exactly 2 levels There is an option qtype which dosent make any difference. What is the correct

Re: [R] QQ plot

2012-02-17 Thread nandan amar
, 2012 at 3:01 PM, Rolf Turner rolf.tur...@xtra.co.nz wrote: On 17/02/12 21:32, nandan amar wrote: Hello, I am having two data set original and predicted. I want to dind QQ-plot fot it. I tried in following manner : qq(original~predicted) and error was : Error in qq.formula(o ~ p) : y must

[R] sorting data

2011-10-28 Thread nandan amar
I want to sort my following data set according to value in 4th column 0 1 0 27877.3044386212 15.8733019973557 2640.42407064348 0 1 1 27470.1699006254 35.4182473588807 2303.26461260826 0 1 2 27468.0314985496 38.4400363878507 2300.05521684593 0 1 3 27469.1130543141 40.7540672493746

Re: [R] sorting data

2011-10-28 Thread nandan amar
. Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology Baltimore VA Medical Center 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524 (Phone) 410-605-7119 (Fax) 410-605-7913 (Please call phone number above prior to faxing) nandan

[R] construct a data set

2011-07-28 Thread nandan amar
Hi, i want to construct a data set similar to AirPassengers. Its attributes are following. attributes(AirPassengers) $tsp [1] 1949.000 1960.917 12.000 $class [1] ts How Can I construct a data set similar to it having same class and attributes. Thanks -- Amar Kumar Nandan

Re: [R] construct a data set

2011-07-28 Thread nandan amar
to provide more info on what you want to do. Cheers and good luck getting started in R. Michael Weylandt On Jul 28, 2011, at 5:27 AM, nandan amar nandan.a...@gmail.com wrote: Hi, i want to construct a data set similar to  AirPassengers. Its attributes are following. attributes(AirPassengers

Re: [R] construct a data set

2011-07-28 Thread nandan amar
, you might have a look at ?ts, which creates time-series objects (as AirPassengers actually is, see class(AirPassengers)). hth Am 28.07.2011 11:27, schrieb nandan amar: Hi, i want to construct a data set similar to  AirPassengers. Its attributes are following. attributes(AirPassengers

Re: [R] Plot cdf, pdf

2011-06-02 Thread nandan amar
try folllowing in general ?ecdf but what vector input consists of..?? On 3 June 2011 01:19, Alaios ala...@yahoo.com wrote: Dear all, do you know any easy way based on a vector input how to plot easily cdf and pdf. I would like to thank you in advance for your help Regards Alex

[R] finding derivative of a data series in R

2011-05-27 Thread nandan amar
Dear All, I tried following for getting derivative of a polynomial in R i- -10:10 x-i*i*i+3*i*i+2 fun_spline-splinefun(i,x) plot(x,type=l) lines(x,fx_spline(x, deriv=1), col='green') lines(x,fx_spline(x, deriv=2), col='green') Now when I plot 3*i*i + 6*i and 6*i + 6 the plot was not same for

Re: [R] finding derivative of a data series in R

2011-05-27 Thread nandan amar
of the interpolator shouldn't necessarily match the derivative of the function exactly. Obviously, though, you want them to be close. HTH, Dennis On Fri, May 27, 2011 at 1:23 AM, nandan amar nandan.a...@gmail.com wrote: Dear All, I tried following for getting derivative of a polynomial

Re: [R] finding derivative of a data series in R

2011-05-27 Thread nandan amar
However if we have some discrete data set like daily temperature etc how can we can differentiate it because as.expression(D()) will not work then On 27 May 2011 16:52, nandan amar nandan.a...@gmail.com wrote: Thanks Dennis. I got you. My main consern was how to differentiate a series

Re: [R] finding derivative of a data series in R

2011-05-27 Thread nandan amar
-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of nandan amar Sent: Friday, May 27, 2011 10:44 AM To: r-help; Dennis Murphy Subject: Re: [R] finding derivative of a data series in R However if we have some discrete data set like daily temperature etc how can we can differentiate

Re: [R] comparing ARIMA model to data

2011-04-07 Thread nandan amar
Hello Andrew, There are some parameters associated with the o/p of arima(), In your case fit. If one search for help(arima) , Values like sigma2,var.coef,loglik, aic will give you some information regarding how good the model is. If you want to overlay the output, you have to produce the output

Re: [R] system() command in R

2011-04-05 Thread nandan amar
On 4 April 2011 16:54, rasanpreet kaur suri rasanpreet.k...@gmail.comwrote: Hi all, I have a local server insalled on my system and have to start that from within my R function. here is how I start it: cmd-sh start-server.sh system(cmd, wait=FALSE) My function has to start the server

Re: [R] help

2011-04-02 Thread nandan amar
One way that u might have thought of is to create plot in PDF in R and the use pdftools. Additionally one can also think of running R script using R CMD and then using pdftools in a .sh script file if u r in linux. I am not aware of pdftools capability in R. On 2 April 2011 23:01, Vijayan

[R] finding model order components for arima()

2011-02-27 Thread nandan amar
Greetings, I am trying to model a time series using arima(). For getting the model order components(p, d, q and P,D,Q) I am using procedure discussed in [1] in section 3.2 . It is most likely hit and trial method based on lower AIC value. I want to know what is the correct way to find model

[R] using gsarima package with R

2011-01-23 Thread nandan amar
I am trying to use function garsim from package gsarima. I can download gsarima package from http://cran.fyxm.net/web/packages/gsarima/index.html for linux. But how I can add it to R. I have compiled and installed R from its R source code under Ubuntu. regards. -- Amar Kumar Nandan Karnataka