[R] Bivariate ReLU Distribution

2020-07-10 Thread Arun Kumar Saha via R-help
Hi, I would rather have a Statistics related question hope experts here can provide some suggestions. I have posted this request in some other forum but failed to generate meaningful response I am looking for some technical document on deriving the Distribution function for sum of 2 

Re: [R] Help with Regular expression

2018-01-05 Thread Arun Kumar Saha
= "%d%b%Y%H%M%OS") [1] "2018-01-03 16:00:00 GMT" _____ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST LinkedIn: http://in.linkedin.com/in/ArunFRM Personal : http://WWW.ARUNSAHA.IN <http://WWW.ARUNSAHA.IN> ___

Re: [R] Model selection in nonstationary VAR

2013-02-23 Thread Arun Kumar Saha
which method in statistics is completely free from model misspecification? Thanks and regards, _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http://in.linkedin.com/in/ArunFRM

Re: [R] Spammer radhi

2012-12-24 Thread Arun Kumar Saha
Can the Statisticians here develop some good Statistical tool to stop this Spamming keeping Type-I error almost zero? Thanks and regards, _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http

Re: [R] how calculate seasonal component cyclic component of time series?

2012-03-21 Thread Arun Kumar Saha
. _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http://in.linkedin.com/in/ArunFRM __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] VECM simulation

2012-03-07 Thread Arun Kumar Saha
then use VAR simulation code. HTH, Thanks and regards, _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http://in.linkedin.com/in/ArunFRM

Re: [R] How to generate heterosced​astic random numbers?

2011-07-08 Thread Arun Kumar Saha
within Asymptotic concept. Then apply your statistical test on that realized series. You may repeatedly generate TS and check the distribution of estimated model parameters etc. HTH _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING

Re: [R] Running R from windows command prompt

2011-06-28 Thread Arun Kumar Saha
_ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http://in.linkedin.com/in/ArunFRM __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] strength of seasonal component

2011-05-12 Thread Arun Kumar Saha
above regression approach would be handy. HTH Thanks and regards, _ Arun Kumar Saha, FRM QUANTITATIVE RISK AND HEDGE CONSULTING SPECIALIST Visit me at: http://in.linkedin.com/in/ArunFRM

[R] using lapply

2011-03-09 Thread Arun Kumar Saha
On reply to the post http://r.789695.n4.nabble.com/using-lapply-td3345268.html Dear Kushan, this may be a good start: ## assuming 'instr.list' is your list object and you are applying my.strat() function on each element of that list, you can use lapply function as lapply(instr.list, function(x)

Re: [R] Help -normal distribution

2010-08-01 Thread Arun Kumar Saha
I gave you hint only, however whatever you done is correct. On Mon, Aug 2, 2010 at 4:30 AM, n.a.s nn.r...@gmail.com wrote: Hi, But i didn't understand why you did it like this qnorm(40/200)?? I already found the answer  qnorm(.20,181,7.3) and qnorm(.80,181,7.3) Thanks. On Mon, Aug 2,

[R] Best way to replace :SS with :00

2009-07-16 Thread Arun Kumar Saha
probably : a - rep(HH:MM:SS, 5) substring(a, 7) = 00 a Not sure if there is an R way to do this or a regular express way, but here is what I am trying to do. I've got lots of data where the format is HH:MM:SS, but I need to format it like HH:MM:00, i.e. round the second down to zero. What is

[R] Detecting Break

2009-07-05 Thread Arun Kumar Saha
Hi all, say, I have following vector : x - c(rep(5, 5), rep(3,4), rep(5,10)) Now I want to get the index numbers where elements of that vector changes i.e. in above example I want to get a vector with elements : 6, 10. Because at that indices, element of original vector changes value. Is there

[R] Calling R from .net environment

2009-05-13 Thread Arun Kumar Saha
Hi, Currently I am a .net programmer and would like to use R for my statistical computations engine. I already have installed RServer250.exe so that I could call R from my .net programming environment, however unfortunately, i could not be able to find RServer250.exe in the R-(D) COM Interface

[R] Skewness

2008-09-12 Thread Arun Kumar Saha
I would like to know about the skewness function bundled in fBasics package. Is it population measure of skewness or sample estimate? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Package for financial options calculation

2008-09-11 Thread Arun Kumar Saha
Hi all, Is there any R package on European/American oprions pricing? And on calculation of it's sensitivities? Regards, [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Weighted variance function?

2008-07-27 Thread Arun Kumar Saha
ur prog gives following result: weighted.var(c(1,-1), c(0.5,0.5)) [1] 2 is it ok? On Thu, Jul 24, 2008 at 7:57 PM, Gavin Simpson [EMAIL PROTECTED]wrote: On Thu, 2008-07-24 at 02:25 +0530, Arun Kumar Saha wrote: There is a R function to calculate weighted mean : weighted.mean() under stats

Re: [R] Weighted variance function?

2008-07-27 Thread Arun Kumar Saha
Burns [EMAIL PROTECTED]wrote: Have you seen 'cov.wt'? Patrick Burns [EMAIL PROTECTED] +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and A Guide for the Unwilling S User) Arun Kumar Saha wrote: ur prog gives following result: weighted.var(c(1,-1), c(0.5,0.5)) [1] 2

Re: [R] Weighted variance function?

2008-07-27 Thread Arun Kumar Saha
oh now I got, R is taking unbiased estimator, anyways thanks On Sun, Jul 27, 2008 at 2:54 PM, Arun Kumar Saha [EMAIL PROTECTED]wrote: I feel there is something wrong in definition in weighted variance. Say for a fair dice the variance of outcome should be : 2.92 ( http://en.wikipedia.org

[R] Weighted variance function?

2008-07-23 Thread Arun Kumar Saha
There is a R function to calculate weighted mean : weighted.mean() under stats package. Is there any direct R function for calculating weighted variance as well? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] looking for alternative of 'if-else'

2008-07-06 Thread Arun Kumar Saha
There is if-else loop if I have to choose 1 item from a 2-item list. However if I have a list of 4 items (let say) then how i can choose a single item without employing 'if-else' loop? I mean in VBA I can use select-case, is there any equivalent in R as well? Regards, [[alternative HTML

Re: [R] looking for alternative of 'if-else'

2008-07-06 Thread Arun Kumar Saha
Quoting Arun Kumar Saha [EMAIL PROTECTED]: There is if-else loop if I have to choose 1 item from a 2-item list. However if I have a list of 4 items (let say) then how i can choose a single item without employing 'if-else' loop? I mean in VBA I can use select-case, is there any equivalent

[R] Converting variance covariance matrix to correlation matrix

2008-05-19 Thread Arun Kumar Saha
Suppose I have a Variance-covariance matrix A. Is there any fast way to calculate correlation matrix from 'A' and vice-versa without emplying any 'for' loop? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

[R] Simulation study in R

2008-04-29 Thread Arun Kumar Saha
Here I am in a simulation study where I want to find different values of x and y such that f(x,y)=c (some known constant) w.r.t. x, y 0, y=x and x=c1 (another known constant). Can anyone please tell me how to do it efficiently in R. One way I thought that I will draw different random numbers from

Re: [R] Simulation study in R

2008-04-29 Thread Arun Kumar Saha
change continuously you may need the condition |f(x,y) - c| epsilon for some epsilon 0. Regards, Moshe. --- Arun Kumar Saha [EMAIL PROTECTED] wrote: Here I am in a simulation study where I want to find different values of x and y such that f(x,y)=c (some known constant) w.r.t. x, y 0

[R] Writing list object to a file

2008-04-23 Thread Arun Kumar Saha
Hi all, I am wondering how to write a 'list' object to a file. I already gone through some threads like http://mail.python.org/pipermail/python-list/2001-April/080639.html, however could not trace out any reliable solution. I tried following : write.table(calc, file=c:/data.csv) Error in

Re: [R] Writing list object to a file

2008-04-23 Thread Arun Kumar Saha
or not. Can anyone suggest me any easiest way how to construct the test statistic, described above? Thanks On Wed, Apr 23, 2008 at 12:21 PM, Arun Kumar Saha [EMAIL PROTECTED] wrote: Hi all, I am wondering how to write a 'list' object to a file. I already gone through some threads like http

[R] Loading user defined functions autometically each time I start R

2008-02-26 Thread Arun Kumar Saha
Hi all, I wrote some user defined function for my own. Now I want to get a mechanism so that every time I start R, those function will automatically be loaded in R without manually copying pasting. Can gurus here pls tell me how to do that? Or I have to build my own packages bundled with those

Re: [R] Loading user defined functions autometically each time I start R

2008-02-26 Thread Arun Kumar Saha
I am using R 2.6.2. under windows On Wed, Feb 27, 2008 at 12:43 PM, [EMAIL PROTECTED] wrote: From: Arun Kumar Saha [EMAIL PROTECTED] Date: 2008/02/27 Wed AM 01:03:26 CST To: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: [R] Loading user defined functions autometically each time I start R

[R] Fetching datapoints from a Time Series

2007-10-24 Thread Arun Kumar Saha
Hi all, I have a time series like that : DateValue 01/03/05 -0.008471364 01/04/05 -0.008153802 01/05/05 -0.000780031 01/06/05 -0.000130064 01/07/05 -0.000650576 01/08/05 -0.000130166 01/10/05 -0.004174282 01/11/05 0.01027384 01/12/05 -0.006099558 01/13/05 -0.009811054

Re: [R] Need help on date

2007-09-20 Thread Arun Kumar Saha
[7,] 16688 365 [8,] 16689 365 [9,] 16691 365 [10,] 16692 360 [11,] 16693 360 [12,] 16694 360 However this is not that thing what I wanted, first column has been jumbled, it is not in actual date format. Can anyone tell me what should i do here? Regards, On 9/18/07, Arun Kumar Saha