similar to: Re: [R-sig-finance] syntax for a loop

Displaying 20 results from an estimated 10000 matches similar to: "Re: [R-sig-finance] syntax for a loop"

2004 Nov 28
3
Correct Syntax for a Loop
I'll appreciate if some one can help me with the following loop. This is the logic of the loop, if we have the following data; > x.df x.dif . . . . 102 0.00 103 0.42 104 0.08 105 0.00 106 0.00 107 0.00 108 -0.16 109 -0.34 110 0.00 111 -0.17 112 -0.33 113 0.00 114 0.00 115 0.00 116 0.33 117 0.17 118 0.00 . . . . I'm trying to find i's where for (i
2011 Jun 04
0
[R-SIG-Finance] Measure quality of fit for MA(q), ARMA(p, q) and GARCH(p, q)
Thank you so much all for your invaluable inputs. On Sat, Jun 4, 2011 at 3:36 AM, Patrick Burns <patrick at burns-stat.com> wrote: > A common thing to do is the Ljung-Box > test on the residuals. ?For garch it > would be the residuals squared. > > Actually for garch it should be the > rank of the squared residuals -- see >
2002 Oct 31
1
New home for S Poetry
Many readers on this list probably don't know that S Poetry had an old home. S Poetry is a book in pdf about programming in the S language. It was written mainly with S-PLUS 3.x in mind when R was still an infant relative to what it is now. Some parts of the book are still quite accurate for R. In other places R is rather different from what is in the book. The FAQ on the differences
2006 May 17
0
variable colnames
Hy all, I apologize i've used rownames instead of colnames in my first exemple. (that's why i changed the mail object) I was on mars when i wrote my question... Every answer where correct ... but, because i've made a wrong question, people wern't able to understand... So finally i'm speaking about colnames : Let's be more precise: I've got a query that gives me for
2008 Jul 13
2
multiple names to assign
'assign' does not give a warning if 'x' has length greater than 1 -- it just uses the first element: assign(c('a1', 'a2'), 1:2) One way of thinking about this is that people using 'assign' get what they deserve. The other is that it is used seldom enough that adding a warning isn't going to slow things down appreciably. Patrick Burns patrick at
2004 Nov 20
1
sum and partial argument name matching
"sum" (and perhaps other functions?) allows partial argument name matching after its three-dots argument: > sum(1:4, NA, n=78, na.rm=FALSE) [1] 10 > sum(1:4, NA, n=78, na.rm=TRUE) [1] 11 I can see there could be a discussion about whether or not this is a bug, but I think all will agree that it's a might peculiar. This is done in 2.0.1 but the same behavior is in 1.8.1.
2003 Dec 18
1
a debugging difficulty
I had an error to debug that turned out to be essentially: > NULL * matrix(1:4, 2) Error: dim<- length of dims do not match the length of object The equivalent of the NULL was a variable that was meant to be a scalar. It took me a while to track down the problem because I was focusing on looking for arrays that were different than my expectation. I think it could save substantial
2007 Feb 28
2
sort of OT: bootstrap tutorial
There is now a tutorial on bootstrapping and other resampling methods at: http://www.burns-stat.com/pages/Tutor/bootstrap_resampling.html Corrections and other suggestions are welcome. The project started because a novice asked me about bootstrapping. My response was, "How dare you bug me while I'm playing with my cats, just google for it." My correspondent was not very impressed
2006 Jan 27
3
draft of Comment on UCLA tech report
You may recall that there was a discussion of a technical report from the statistical consulting group at UCLA. I have a draft of a comment on that report, which you can get from http://www.burns-stat.com/pages/Flotsam/uclaRcomment_draft1.pdf I'm interested in comments: corrections, additions, deletions. Patrick Burns patrick at burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com
2003 May 18
0
POP Portfolio Optimizer
Burns Statistics has just released its POP Portfolio Optimizer, which is available for a license fee. This has an interface designed to run under either S-PLUS or R. In addition to portfolio selection and asset allocation, there is functionality to generate random portfolios, and to estimate statistical factor models. The website includes a new working paper on the best approach to using
2003 Dec 01
0
eigen anomaly
This is undoubtedly a bug, but I doubt that it is really down to R. Synopsis: a certain matrix causes eigen(symmetric=TRUE) to produce NaN's in some of the returned eigenvectors. This happens using SuSe 8.2 Professional and the precompiled R rpm (happens in both 1.8.1 and 1.7.1). I don't see it under Windows. To reproduce the bug: The matrix (75 by 75, about 45K) is in
2004 Oct 12
1
suggested minor clarification in fix help file
In the help file for "fix" in the Details section: I suggest that "when" be replaced by "in which case" so that the sentence reads: The name supplied as 'x' need not exist as an R object, in which case a function with no arguments and an empty body is supplied for editing. I'm looking at: platform i386-pc-mingw32 arch i386 os
2003 Sep 24
1
partial matching in data frame subscripting
I'm not sure if the following is a bug or a feature: > jjmat <- array(1:6, c(2,3), list(c('ABC', 'DEF'), c('xyz', 'tuv', 'qrs'))) > jjdf <- as.data.frame(jjmat) > jjmat['AB', ] Error: subscript out of bounds > jjdf['AB',] xyz tuv qrs ABC 1 3 5 > jjmat[, 'tu'] Error: subscript out of bounds
2004 May 21
1
search and missing library
I'm not sure what is going on with this one -- maybe it will make sense to someone. R1.9.0 under Windows 2000. 1) Start up R. 2) search() # works as expected 3) library(fBasics) # from Rmetrics # but at least one of its required packages is not present on the machine 4) search() # nothing appears at all but the prompt Once all of the required packages are present, then step 3 no longer
2004 Nov 23
1
help.search('goodness of fit') is empty
In 2.0.1 the command help.search('goodness of fit') comes up empty. "ks.test" is what I was looking for, though perhaps there could be others? Patrick Burns Burns Statistics patrick@burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User")
2005 Apr 30
1
formals assignment now strips attributres
The assignment form of 'formals' strips attributes (or something close to that) from the values in the list. This wasn't intentional, was it? The current behavior (2.0.0 through 2.1.0 on Windows at least): > fjj <- function() x > formals(fjj) <- list(x=c(a=2, b=4)) > fjj function (x = c(2, 4)) x Previous behavior: > fjj <- function() x > formals(fjj)
2005 Jan 03
3
spreadsheet addiction
There's a new page on the Burns Statistics website http://www.burns-stat.com/pages/Tutor/spreadsheet_addiction.html that looks at spreadsheets from a quality assurance perspective. It presents R as a suitable alternative to spreadsheets. Also there are several specific problems with Excel that are highlighted, including the status of statistical functionality in Excel. Patrick Burns Burns
2008 Apr 02
0
[R-SIG-Finance] Bayesian estimation of jump-diffusion processes andself-exciting counting processes
Sincerely, Jeffrey Todd Lins Executive Director Quantitative Analysis Saxo Bank A/S (Sent from my BlackBerry) ----- Original Message ----- From: r-sig-finance-bounces at stat.math.ethz.ch <r-sig-finance-bounces at stat.math.ethz.ch> To: r-help <R-help at stat.math.ethz.ch>; r-sig-finance at stat.math.ethz.ch <r-sig-finance at stat.math.ethz.ch> Sent: Wed Apr 02 06:49:54 2008
2007 Aug 03
0
[R-SIG-Finance] question on analyzing of correlation structure
I don't understand your question but there is a package called VARs that may be helpful to you. -----Original Message----- From: r-sig-finance-bounces at stat.math.ethz.ch [mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of liu lu Sent: Friday, August 03, 2007 8:39 AM To: r-sig-finance at stat.math.ethz.ch Subject: [R-SIG-Finance] question on analyzing of correlation structure
2006 Oct 10
0
[R-SIG-Finance] regarding bootstrapping... REVISITED
hi Thomas/All, I went through the thread( https://stat.ethz.ch/pipermail/r-sig-finance/2006q1/000682.html which concerns with swaps). Yeah it is correct that i would like to quote both David and Krishna that the curve interpolation may vary considerably (for e.g. any polynomial/parametric fit is very different from and curve fitting whether it is free hand or by NURBS ( complex version of