Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
he graph? Looking forward to your suggestion in this regard. With sincere regards, Upananda Pani On Tue, May 2, 2023 at 6:14 PM Chris Evans wrote: > > I suspect that you have tried to pass your own data into the pivot_longer() > function and your data probably doesn't have the rowN variable.

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
u want but ... > > On 02/05/2023 10:57, Upananda Pani wrote: > > Dear All, > > > > I have a dataset which contains date and 12 other countries data. I > > have extracted the data as xts object. > > > > I am not able to recall all the series in the Y axis. My d

Re: [R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
to > call the dataframe explicitly. Does this work? > > ggplot(data = data_vol3, aes(x = index, y = usa)) + > geom_line() > > Best wishes, > Thomas > > ------ > *Von:* R-help im Auftrag von Upananda Pani > > *Gesendet:* Dienstag, 2. Mai 2023 10:

[R] Reg: Help regarding ggplot2

2023-05-02 Thread Upananda Pani
will be highly appreciated With regards, Upananda Pani __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented

Re: [R] Extracting data using subset function

2023-02-06 Thread Upananda Pani
once again to all of you. Regards, Upananda Pani On Mon, Feb 6, 2023 at 4:29 AM wrote: > In reading the post again, it sounds like the question is how to create a > logical condition that translates as 1:N is TRUE. Someone hinted along > those lines. > > So one WAY I might suggest i

Re: [R] Extracting data using subset function

2023-02-05 Thread Upananda Pani
Hi Rolf, Thank you so much. I was just curious to know that. I am glad that i got the input from all of you. I am grateful to you for clarifying. With sincere gratitude, Upananda On Mon, Feb 6, 2023 at 1:29 AM Rolf Turner wrote: > On Sun, 5 Feb 2023 19:37:03 +0530 > Upananda Pani

Re: [R] Extracting data using subset function

2023-02-05 Thread Upananda Pani
itions > > On February 5, 2023 11:33:16 AM PST, Upananda Pani < > upananda.p...@gmail.com> wrote: > >Thank you. It means we can not use the subset function here. > > > >Regards > > > >On Mon, 6 Feb, 2023, 00:53 Andrés González Carmona, > wrote:

Re: [R] Extracting data using subset function

2023-02-05 Thread Upananda Pani
tting functions like [ > <http://127.0.0.1:21786/library/base/help/%5B>, and in particular the > non-standard evaluation of argument subset can have unanticipated > consequences. > > El 05/02/2023 a las 15:07, Upananda Pani escribió: > > Dear All, > > I want to cre

Re: [R] Extracting data using subset function

2023-02-05 Thread Upananda Pani
t; > subset(x1,z1) > [1] 9 8 7 > > 2023年2月6日(月) 3:34 Upananda Pani : > > > > No i am teaching Econometrics and learning R. I am not a student. > > > > Thank you > > Upananda > > > > On Sun, 5 Feb, 2023, 19:51 Chris Ryan via R-help, > > wrot

Re: [R] Extracting data using subset function

2023-02-05 Thread Upananda Pani
February 5, 2023 9:07:03 AM EST, Upananda Pani > wrote: > >Dear All, > > > >I want to create a vector p and extract first 20 observations using subset > >function based on logical condition. > > > >My code is below > > > >p <- 0:100 > >

[R] Extracting data using subset function

2023-02-05 Thread Upananda Pani
Dear All, I want to create a vector p and extract first 20 observations using subset function based on logical condition. My code is below p <- 0:100 I know i can extract the first 20 observations using the following command. q <- p[1:20] But I want to extract the first 20 observations using

[R] Reg: Defining Lagged value of a time series variable

2023-01-18 Thread Upananda Pani
roilt,start=c(2020,20),end=c(2021,212),freq=365) roilt.lag4 = window(roilt,start=c(2020,19),end=c(2021,211),freq=365) I am getting error (length is not matching), while creating lag. I will grateful to you if you can tell me where I am making mistakes. Regards, Upananda Pani [[alternative

[R] Reg: lag transformation of time series data

2023-01-17 Thread Upananda Pani
roilt,start=c(2020,20),end=c(2021,212),freq=365) roilt.lag4 = window(roilt,start=c(2020,19),end=c(2021,211),freq=365) I am getting error (length is not matching), while creating lag. I will grateful to you if you can tell me where I am making mistakes. Regards, Upananda Pani [[alt

[R] Fwd: Reg: Frequency in declaring time series data

2023-01-17 Thread Upananda Pani
help and support. With sincere regards, Upananda On Tue, 17 Jan, 2023, 01:40 Rui Barradas, wrote: > Às 16:39 de 16/01/2023, Upananda Pani escreveu: > > Dear All, > > > > I have a time series daily data with date are stored ( %dd-%mm-%yy > format ) > > from 22-01-20 to

[R] (no subject)

2023-01-16 Thread Upananda Pani
roilt,start=c(2020,20),end=c(2021,212),freq=365) roilt.lag4 = window(roilt,start=c(2020,19),end=c(2021,211),freq=365) I am getting error (length is not matching), while creating lag. I will grateful to you if you can tell me where I am making mistakes. Regards, Upananda Pani [[alt

[R] Reg: Frequency in declaring time series data

2023-01-16 Thread Upananda Pani
nal.xlsx") pricet=ts(oil$price, start = c(2020, 22), freq = 365) roilt=ts(diff(log(oil$price))*100,start=c(2020,22), freq=365) Shall I have to declare the dates here? I want to know also if it is a 5 day trading a week, how to declare the frequency. Looking forward to your reply Regards, Upananda

Re: [R] Reg: ggplot error

2023-01-11 Thread Upananda Pani
I am sorry. On Wed, Jan 11, 2023 at 5:32 PM Eric Berger wrote: > No code or data came through. > Please read the posting guidelines. > > > On Wed, Jan 11, 2023 at 1:38 PM Upananda Pani > wrote: > > > > Dear All, > > > > I am using roptest function

[R] Reg: ggplot error

2023-01-11 Thread Upananda Pani
I am doing some error which I am not able to correct. Please help me to find out my error. With sincere regards, Upananda Pani __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEA

Re: [R] Reg: Help in assigning colors to factor variable in ggplot2

2022-12-26 Thread Upananda Pani
ex digits. > e.g. "#4DAF4A" will work. > > Also you seem to be confused about ggplot. You are not using ggplot in > your code at all. > You are using base graphics. You can remove the 3 library calls. > > HTH, > Eric > > > On Mon, Dec 26, 2022 at 4:06 PM Upana

Re: [R] Reg: Help in assigning colors to factor variable in ggplot2

2022-12-26 Thread Upananda Pani
Hi John, Greetings! I am grateful to your suggestions. I have fixed the error as per your suggestions. Many thanks to you for saving my time. With sincere regards, Upananda Pani On Mon, Dec 26, 2022 at 9:09 PM John Kane wrote: > Here is a rough guess at what you may want with a bit of m

Re: [R] Reg: Help in assigning colors to factor variable in ggplot2

2022-12-26 Thread Upananda Pani
(values = c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3")) + ## labeling ggtitle("500 ICU patients") + xlab("Maximum body temperature") + ylab("Maximum heart frequency") ``` However, I will try with your solution. Thanks for y

[R] Reg: Help in assigning colors to factor variable in ggplot2

2022-12-26 Thread Upananda Pani
Dear All, I am trying to plot a scatter plot between temperature and heart rate and additionally marking the outcome of the patients by colors. I am using the standard package Use the standard function plot as well as the functions of package "ggplot2" (Wickham (2009)). Save the plots in pdf

Re: [R] Reg: To change the x axis label in ts.plot function

2022-12-25 Thread Upananda Pani
; frequency=1/7) > plot(pricet,xaxt="n") > axis_dates<-as.Date(c("2020-06-30","2021-01-01","2021-06-30")) > axis(1,at=axis_dates,labels=format(axis_dates,"%d/%m/%Y")) > > Jim > > On Sun, Dec 25, 2022 at 5:58 AM Upananda Pani

[R] Reg: To change the x axis label in ts.plot function

2022-12-24 Thread Upananda Pani
ere regards, Upananda Pani __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, s

[R] Converting irregular time series data into ts object

2020-02-19 Thread Upananda Pani
Dear All, I want to convert irregular time series daily data in to ts objects. For some years I have 305 days data and some years I have 256 days. I need your suggestion regarding the same. I have read tutorial on the same but not able to find solutions. With regards, Upananda

Re: [R] Convert data into zoo object using Performance analytics package

2017-09-22 Thread Upananda Pani
- "%m/%d/%Y" With sincere regards, Upananda Pani On Wed, Sep 20, 2017 at 3:22 PM, PIKAL Petr <petr.pi...@precheza.cz> wrote: > Hi > > Gabor's code works as expeceted without error. > What is "u" in your case? > > Cheers > Petr > > > -Original

[R] Treating NA in timeSeries package

2017-09-22 Thread Upananda Pani
in interpNA(fut, method = c("linear")) : fut is not a tis object Then i want to convert my data into time series as following # Making Time Series fut = ts(fut, start=c(2006,4), frequency=305) spt = ts(spt, start=c(2006,4), frequency=305) Would you

Re: [R] Convert data into zoo object using Performance analytics package

2017-09-20 Thread Upananda Pani
rds, Upananda Pani On Tue, Sep 19, 2017 at 4:31 PM, Upananda Pani <upananda.p...@gmail.com> wrote: > Dear Sir, > > Thanks for your mail and help. I got this error while trying to run your > code. > > sbux1.z <- read.csv.zoo(u, FUN = as.yearmon, format = fmt) > Error

[R] Convert data into zoo object using Performance analytics package

2017-09-18 Thread Upananda Pani
sbux.z) Data: numeric(0) I will be grateful if anybody would like to guide me where i am making the mistake. With best regards, Upananda Pani -- You may delay, but time will not. Research Scholar alternative mail id: up...@iitkgp.ac.in Department of HSS, IIT KGP KGP [[alternati

[R] reading data using XTS package

2014-11-18 Thread Upananda Pani
Dear All, I want to read the my time series data using XTS package and then to calculate return using PeformanceAnalytics Package but i am getting the following error. Please help me to solve the problem. The error follows: # Required Libraries library(xts) library(PerformanceAnalytics)

[R] treating missing values in timeSeries package

2014-11-01 Thread Upananda Pani
Dear All, I am getting the following error when i am using interpNA function from timeSeries package # Missing Value Treatment (Linear Interpolation) spt = interpNA(spt, method = c(linear)) Error in interpNA(spt, method = c(linear)) : spt is not a tis object fut = interpNA(fut, method =

[R] converting individual data series to natural log (continuously compounded return)

2014-10-31 Thread Upananda Pani
Hi All, I want to convert my price data into natural log (continuously compounded return) by using Performance Analytics Package, I am getting the following error. rfut = Return.calculate(fut) Error in checkData(prices, method = xts) : Please help me. With sincere regards, Upananda --

[R] non causality test and wavelet decompostion

2014-07-13 Thread Upananda Pani
Dear All, Is there any package to perform linear and nonlinear causality test with frequency bands. In the non linear causality the model can take any of the specification which includes Semi-additive, P-general Taylor based, ANN-based. This is also done in Wavelet decomposition. Please suggest

[R] how to install R 3.0.1

2013-05-31 Thread Upananda Pani
Hi All, I want to switch over from 2.13.1 to 3.0.1. Is it advisable to switch over. I am using Windows Vista. Please suggest me installation procedure as i am not very comfortable in Installing R and If any good documentations can be found, Please send me the link. Thanks and Regards, Upananda

Re: [R] how to install R 3.0.1

2013-05-31 Thread Upananda Pani
Hi John, I am using Microsoft Window Vista Service Pack 2. Regards, Upananda On Fri, May 31, 2013 at 6:47 PM, John Kane jrkrid...@inbox.com wrote: http://www.r-project.org/ and go from there I imagine. You did not supply any information about your operating system so it is difficult to

Re: [R] how to install R 3.0.1

2013-05-31 Thread Upananda Pani
Hi John, Thanks for your reply .How to Update all the packages ( Which i am already using ) automatically to the new version.? With regards, Upananda On Fri, May 31, 2013 at 7:01 PM, John Kane jrkrid...@inbox.com wrote: Sorry I misread your post. Just download the 3.0.1 for Windows and

Re: [R] how to install R 3.0.1

2013-05-31 Thread Upananda Pani
). On May 31, 2013 9:43 AM, Upananda Pani upananda.p...@gmail.com wrote: Hi John, Thanks for your reply .How to Update all the packages ( Which i am already using ) automatically to the new version.? With regards, Upananda On Fri, May 31, 2013 at 7:01 PM, John Kane jrkrid

Re: [R] how to install R 3.0.1

2013-05-31 Thread Upananda Pani
Does it mean the packages are already updated ? On Fri, May 31, 2013 at 9:35 PM, Prof Brian Ripley rip...@stats.ox.ac.ukwrote: On 31/05/2013 16:53, Upananda Pani wrote: When I am updating packages, I got the following output: The downloaded binary packages are in C:\Users\upani

Re: [R] how to install R 3.0.1

2013-05-31 Thread Upananda Pani
Hi All, Thanks all for your kind help else it would have been very tough to go ahead. I convey my regards to all of you. Upananda On Fri, May 31, 2013 at 10:35 PM, John Kane jrkrid...@inbox.com wrote: Arh, a sloppy copy and paste. Thanks John Kane Kingston ON Canada

[R] MGARCH BEKK estimation

2011-10-10 Thread upananda pani
Dear All, I want to estimate Bivariate Garch Model using MGARCHBEKK package. I am not able to understand some part of the command this function. mvBEKK.est(eps=lrdata, order = c(1,1), params = NULL, fixed = NULL, method = BFGS, verbose = F) Here what exactly the eps refers to ? It would be

Re: [R] creating a loop for a function

2011-10-06 Thread upananda pani
, type=Ljung)$parameter) sapply(1:10, function(i) Box.test (lfut, lag = i, type=Ljung)$p.value) extractor wasn't quite the right word, but more or less that's the idea (if you happen to know it from other programming contexts). Michael On Thu, Oct 6, 2011 at 1:43 AM, upananda pani upananda.p

[R] creating a loop for a function

2011-10-05 Thread upananda pani
Dear All, I want to create a loop within a function r. The example follows: Box.test (lfut, lag = 1, type=Ljung) if i want to compute the Box.test for lag 1 to 10, I have to write manually change each time for different lag. So i wan to write a loop for the lag 1 to 10 and return the

[R] regarding specifying criteria for Cointegration

2011-10-02 Thread upananda pani
Dear All, I am learning R and Time Series Econometrics for the first time. I have doubt regarding cointegration specification criteria. The problem follows: test1 - ca.jo(data1,ecdet=const,type=trace,K=2,spec=transitory)---When to specify transitory test1 -

[R] checking the outliers of the time series data set

2011-09-29 Thread upananda pani
Dear All, Can you please guide me how to check the outliers in the data set in R. It would be great if you can give some examples of methods. With regards, Upananda -- You may delay, but time will not. Research Scholar alternative mail id: up...@iitkgp.ac.in Department of HSS, IIT KGP KGP

[R] cointegration test

2011-09-28 Thread upananda pani
Dear All, I am looking for a cointegration relationship between Spot and Future Price of commodites. The problem i am facing follows: 1. After estimating by Engle-Grranger Method, i found that the residuals are stationary at their level I (o), which is required to fulfill the cointegration test.