Re: [R] LaTeX consistent publication graphics from R and Comparison of GLE and R

2012-10-06 Thread clangkamp
I had a brief look at PSTricks, and really quite like it. There is however one catch, like Sweave etc. it is assumed to be processed along with the LaTeX. I find these things rather annoying, as it is just a major and unnecessary error source. I think it is much better to produce single objects (e.

[R] LaTeX consistent publication graphics from R and Comparison of GLE and R

2012-10-05 Thread clangkamp
Hi Everyone I am at the moment preparing my thesis and am looking at producing a few Organigrams / Flow charts (unrelated to the calculations in R) as well as a range of charts (barcharts, histograms, ...) based on calculations in R. For the Organigrams I am looking at an Opensource package call

Re: [R] Standard introductory presentation

2012-08-15 Thread clangkamp
Hi Everyone Thanks for answering both in public and on private email - I got numerous responses, and just for the people who have similar questions: Econometrics introduction "I found this approach interesting to your purposes: http://eeecon.uibk.ac.at/~zeileis/papers/DAGStat-2007.pdf " http://w

[R] Standard introductory presentation

2012-08-13 Thread clangkamp
Hi Everyone In the Contributed Documentation part of the R Project website there are dozens of various documents explaining this and that on R. Furthermore there is also the document "Introduction to R". In my thesis I have been using R here and there, so I would classify myself as an intermediate

[R] R table as integrable object for large Latex Documents - avoiding SWeave

2012-08-13 Thread clangkamp
Hi, I am wondering whether some of you have a pointer to an alternative. I am currently writing my thesis in Latex (several documents), well grown over time, I am sure many of you are familiar with the situation. Likewise I am doing the quantitative analysis with R, and again a lot of lines of more

[R] Gamma Distribution - Goodness of Fit and Choice of Parameters

2012-04-20 Thread clangkamp
As a short disclaimer - I have read the previous posts on Fitting the Gamma Distribution, but have two questions going beyond that: 1. Does anybody have a reference for the theory of fitting a gamma distribution (i.e. whether to apply Kolmogorov-Smirnov, or similar) 2. Has anybody toyed around with

Re: [R] 12th Root of a Square (Transition) Matrix

2011-11-04 Thread clangkamp
I have tried this method, but the result is not working, at least not as I expect: I used the CreditMetrics package transition matrix rc <- c("AAA", "AA", "A", "BBB", "BB", "B", "CCC", "D") M <- matrix(c(90.81, 8.33, 0.68, 0.06, 0.08, 0.02, 0.01, 0.01, 0.70, 90.65, 7.79, 0.64, 0.06, 0.13, 0.02, 0.0

Re: [R] Can't Destroy Dim Names

2010-11-30 Thread clangkamp
Dear David To confirm, your method worked. I am not allowed to divulge the original data (financial data), but here comes another set. Test_DF<-data.frame(Figure=c("A","B","A","B"), Code=c("C", "C", "D", "D"), No=c(1,2,3.5,4)) ?data.frame View(Test_DF) str(Test_DF) Test_DF_m<-melt(Test_DF, measur

Re: [R] Can't Destroy Dim Names

2010-11-30 Thread clangkamp
Dear Jim I think the target is to get from a Named chr to a just chr >> str(mat) > Named chr [1:32268] "yQAAA" "jQAAQ" "UQAAg" "FQAAw" "1QABA" ... > - attr(*, "names")= chr [1:32268] "CA" "CC" > "CG" "CT" ... I have presumably the same problem > str(DC1a) num

Re: [R] Zoo - bug ???

2010-11-30 Thread clangkamp
Dear Gabor, the partial works wonders, that is the bit which I was missing. Thanks Christian - Christian Langkamp christian.langkamp-at-gmxpro.de -- View this message in context: http://r.789695.n4.nabble.com/Zoo-bug-tp2287282p3066253.html Sent from the R help mailing list archive at Nabbl

Re: [R] Zoo - bug ???

2010-11-30 Thread clangkamp
Dear Joshua thank you for the pointer to the width element. Actually still with na.pad=TRUE it doesn't seem to work but attaching an extra row of NAs did. A1a<-zoo(c( NA, NA, 1,2,3,4,5,6, NA, NA)) A1b<-rollapply(A1a,4,mean, na.rm=TRUE, na.pad=FALSE, align="right") A1c<-rollapply(A1a,4,mean, na.r

Re: [R] Zoo - bug ???

2010-11-30 Thread clangkamp
I am not sure whether this is 100 % related, but I also get some unexpected behaviour with NA and rollapply: In the following example I would expect in Line 3 to see a 1 instead of an NA (mean out of [1, NA, NA] What do you think ? > mean(c(1,NA, NA), na.rm=TRUE) [1] 1 > A1a<-zoo(c(NA, NA, 1,2,

Re: [R] Subset by using multiple values

2010-11-29 Thread clangkamp
Dear Phil thanks a lot, it worked just perfect ! Christian - Christian Langkamp christian.langkamp-at-gmxpro.de -- View this message in context: http://r.789695.n4.nabble.com/R-Subset-by-using-multiple-values-tp815278p3064295.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] Subset by using multiple values

2010-11-29 Thread clangkamp
Hi I would like to extend this item to the following: I have the following table X1 X2 X3 value 1 BVEq AGR 11412 954.75 2 CA_Tot AGR 11412 970.59 ... > str(DC2_m) 'data.frame': 104160 obs. of 4 variables: $ X1 : Factor w/ 62 levels "BVEq","CA_Tot",..: 1 2 3 4 5 6 45 46 47 48 ... .

Re: [R] Data Cube in R from CSV

2010-11-13 Thread clangkamp
Indeed I am looking for a View() type thing. Unfortunately I am no developer so I can just work with what is already there. The way forward is then to try everything with a very small cube which is still overseeable and then just do the same with the big one. But View() is really not good for larg

[R] Data Cube in R from CSV

2010-09-17 Thread clangkamp
Hello I am at the moment trying to get to grips with a data cube in R, and I am increasingly wondering whether I am actually making things unnecessarily difficult for myself. The idea is that I have a data cube with three dimensions (so a 3D matrix): companies, figures, and years. So along the z a