Re: [R] info

2009-03-09 Thread Max Kuhn
Enrico, I've been using R for one year and I really appreciate it. I would like to know if a version performing parallel computations on multicore computers and computer clusters exists. There is a high-performance computing SIG (special interests group) for R. See:

Re: [R] Cross Tables with odfTable in odfweave

2009-03-02 Thread Max Kuhn
PJ, Hi, I've been trying to prepare some crosstables for some survey questions for a client. I have been using the CrossTable function in the gmodels package. However, this command only seems to be able to create CrossTables in text documents. I've been trying to use odfTable in odfweave to

Re: [R] statistical significance of accuracy increase in classification

2009-02-26 Thread Max Kuhn
Do you know about any good reference that discusses kappa for classification and maybe CI for kappa??? I don't, but googling on kappa and confusion matrix etc should get you there. Kappa works very well when the true classes are skewed. For example, if 10% of you samples are class A and 90%

Re: [R] statistical significance of accuracy increase in classification

2009-02-25 Thread Max Kuhn
Monica, I have a few thoughts. - (I believe) it is usually better to put confidence in these metrics instead of relying on p-values. The intervals will allow you to make inferential statements and give you a way of characterizing the uncertainty in the estimates. You've seen how to do this with

Re: [R] odfWeave problem Error in xmlEventParse

2009-02-25 Thread Max Kuhn
We should make this an FAQ (or find someone who knows how to correct the bug in XML). We've been working on that. It's hard to say what the problem is without the output of sessionInfo() and a reproducible example. Fredrik - if you can send me this off-list, I'll take a look (but it may

Re: [R] Re : SVM regression code

2009-02-19 Thread Max Kuhn
You can find the complete list at: http://cran.r-project.org/web/views/MachineLearning.html Max __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] odfWeave prettyR

2009-02-13 Thread Max Kuhn
The problem is that on the CRAN web site the XML package is not available for windows... I just checked, and it is available for Windows from my mirror (Austria) and from ETH (assuming you are CH). I would use XML ~ v1.90 for windows to use with odfWeave. You can get it at:

[R] [R-pkgs] caret version 4.06 released

2009-01-26 Thread Max Kuhn
Version 4.06 of the caret package was sent to CRAN. caret can be used to tune the parameters of predictive models using resampling, estimate variable importance and visualize the results. There are also various modeling and helper functions that can be useful for training models. caret has

Re: [R] Error message from CV.GLM

2009-01-20 Thread Max Kuhn
I have problems with the usage of cv.glm from the boot package. Here are some parts of the script I wanted to use: data - read.table(selected_2D.csv, header=TRUE, sep=,) … glm.fitted - glm(ydata$ y ~ 1 + density + vsurf_ID6 + vsurf_S , data=data) error - cv.glm(data=data, glm.fitted, K=6)

Re: [R] problems with extractPrediction in package caret

2009-01-16 Thread Max Kuhn
The issue is the usage of extractPrediction. expred - extractPrediction(rftrain) should really be expred - extractPrediction(list(rftrain)) Since this function is intended to get predictions across multiple models, the man file has a description of the first argument to teh funtion being

Re: [R] odfWeave: Error in matrixPaste(...)

2009-01-13 Thread Max Kuhn
Hello all, I try the follow test with an odf file. *INPUT: teste.odt* teste, results=xml= x - matrix(rnorm(6), nc=2) xst - tableStyles(x, useRowNames = TRUE, header = NULL) odfTable(x, styles=xst, colnames = NULL, useRowNames = TRUE) @ Here is one issue: you are asking for the row names

Re: [R] Problem using odfWeave

2009-01-11 Thread Max Kuhn
You need to cat the results using odfCAt, otherwise you are just writing the output with no XML around it. Max On Jan 11, 2009, at 8:42 AM, Mark Heckmann mark.heckm...@gmx.de wrote: Hi everybody, I don't get odfWeave to run properly. My odt file is as a simple as:

Re: [R] R in the NY Times

2009-01-08 Thread Max Kuhn
More commentary on Slashdot: http://developers.slashdot.org/article.pl?sid=09/01/07/2316227 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] R in the NY Times

2009-01-07 Thread Max Kuhn
You can look on the SAS message boards and see there is a proportional downturn in traffic. I think that I actually made this statement about both the SAS and Splus traffic... I wasn't really trying to be critical of SAS. I was trying to get across that SAS focused their resources on features

Re: [R] odfWeave learning resources

2008-12-17 Thread Max Kuhn
In general I try not to post questions to forums until I've tried my best to read about them in the available documentation. I recently undertook a project that used odfWeave and have been very pleased with the package. But, the R help documentation suggests that there are more sophisticated

Re: [R] Can elastic net do binary classification?

2008-12-09 Thread Max Kuhn
There are at least two options. There is the sparseLDA package that was written by the author of Sparse Discriminant Analysis. The paper can be found at http://www-stat.stanford.edu/~hastie/Papers/sda_line.pdf The initial version of the package is here:

Re: [R] odfWeave and XML... on a Mac

2008-12-01 Thread Max Kuhn
In case anyone has a similar issue, this problem was related to how the results were being sent to the file. The offending code chunk used: moretest, results=xml, echo=false= x- 5 x @ which writes out the text 5 without any XML around it. When OO opens the document up, it ignores this text

Re: [R] Including graphics files in MS office / open office

2008-11-06 Thread Max Kuhn
* svg: R output devices still experimental I've been using the svg device in the Cairo package for a while now. I've never had any issues with it and wouldn't characterize it as experimental (of course, others may have had issues). I have had problems generating svg using some of the non-Cairo

Re: [R] odfWeave error

2008-10-24 Thread Max Kuhn
Rob, Post-processing the contents Error in .Call(RS_XML_Parse, file, handlers, endElementHandlers, as.logical(addContext), : attempt to apply non-function Can you do these three things? 1. Send the results of sessionInfo()? 2. Try to run the code in the code chunks outside of odfWeave and

Re: [R] odfTable in loop

2008-10-21 Thread Max Kuhn
But when I try to run this within a for-loop, the XML-output is suppressed and only the table caption is written: You'll need to wrap it in a print. I'll make a note in the man file. -- Max __ R-help@r-project.org mailing list

Re: [R] knn class probabilities

2008-10-01 Thread Max Kuhn
On Tue, Sep 30, 2008 at 8:06 PM, Mike Fugate [EMAIL PROTECTED] wrote: Good Day, I'm using the knn function in the package class. With k set to 3, the function returns proportions of 1/3, 0.5, 0.6, 2/3, 3/4, and 1.0 for the test cases. I don't understand how with k set to 3 the proportions

Re: [R] caret package: arguments passed to the classification or regression routine

2008-09-19 Thread Max Kuhn
Forgot to cc... On Fri, Sep 19, 2008 at 3:22 PM, Max Kuhn [EMAIL PROTECTED] wrote: A new version 3.41 is on https://r-forge.r-project.org/projects/caret/ Until later tonight, you will have to get it via svn checkout svn://svn.r-forge.r-project.org/svnroot/caret and build it yourself

Re: [R] [slightly off topic] Sweave with markdown

2008-05-23 Thread Max Kuhn
On Fri, May 23, 2008 at 4:37 AM, baptiste Auguié [EMAIL PROTECTED] wrote: (although the zero compilation time is a plus), while for the latter I do not have a decent compatible editor (on a Mac, I tried Openoffice and Abiword but the fonts look like my handwriting for some obscure reason).

Re: [R] Problem with odfWeave: Unescaped '' not allowed in attributes values

2008-05-13 Thread Max Kuhn
Aleksey, I am using the current version of odfWeave (0.7.5). The thing is, the file processed just fine in a previous version (0.7.3). Does anyone have any suggestion how to deal with this? I am now kind of locked since I cannot reproduce a report I was working on... What version of the

Re: [R] Sweave does not parse \Sexpr{}

2008-03-19 Thread Max Kuhn
Have you used R2HTML lately? If so, please see the Sweave FAQ http://www.ci.tuwien.ac.at/~leisch/Sweave/FAQ.html#x1-18000A.16 Max On Wed, Mar 19, 2008 at 7:15 AM, Werner Wernersen [EMAIL PROTECTED] wrote: Sorry about the lack of detail. Some facts: - code chunks are processed fine -

Re: [R] caretNWS and training data set sizes

2008-03-10 Thread Max Kuhn
What version of caret and caretNWS are you using? Also, what version of the nws server and twisted are you using? What kind of machine (# processors, how much physical memory etc)? I haven't seen any real limitations with one exception: if you are running P jobs on the same machine, you are

Re: [R] caretNWS and training data set sizes

2008-03-10 Thread Max Kuhn
really appreciate your help. Cheers Peter -Original Message- From: Max Kuhn [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 12:41 PM To: Tait, Peter Cc: r-help@R-project.org Subject: Re: [R] caretNWS and training data set sizes What version of caret and caretNWS

Re: [R] training svm

2008-03-07 Thread Max Kuhn
Also, see the nearZeroVar function in the caret package. MAx On Fri, Mar 7, 2008 at 7:41 AM, Charilaos Skiadas [EMAIL PROTECTED] wrote: On Mar 7, 2008, at 2:17 AM, Oldrich Kruza wrote: Hello Soumyadeep, if you store the data in a tabular file, then I suggest using standard

Re: [R] Running randomForests on large datasets

2008-02-27 Thread Max Kuhn
Also, use the non-formula interface to the function: # saves some space randomForest(x, y) the formula interface: # avoid: randomForest(y~., data = something) This second method saves a terms object that is very sparse and takes up a lot of space. Max On Wed, Feb 27, 2008 at 12:31

Re: [R] use classificators learned in R in real-life, e.g. C

2008-02-04 Thread Max Kuhn
On Feb 3, 2008 2:16 PM, [EMAIL PROTECTED] wrote: Hi there, I am interested in using R for machine learning (supervised classification). Currently, I have been investigating especially the rpart, tree, and randomForest package, and have achieved first results. are there any experiences, how

Re: [R] things that are difficult/impossible to do in SAS or SPSS but simple in R

2008-01-16 Thread Max Kuhn
Factors have huge benefits over character data in SAS. For a series regulatory filings, I had miles of SAS code to compute KxK tables where all the cells must show up. For example, if one of the levels of one of the variables was never observed, the corresponding row or column would not show up in

Re: [R] odfWeave and xtable

2008-01-12 Thread Max Kuhn
One thing on my (neglected) to-do list for odfWeave is to create a general class called odf that can be used to create output for common models (lm, glm etc). The nice thing here is that the output from this function could write mixed output. For example, a short paragraph about the specified

Re: [R] Help on odfWeave package

2008-01-04 Thread Max Kuhn
On 04/01/2008 2:06 PM, sylvie ahoussou wrote: I already downloaded Wiz from Info-zip in my Program Files directory. I've also copied the directory in my Path in the Environment Variables as I was suggested to do but I keep on getting the same message. I've seen a message in this list

Re: [R] train nnet

2007-12-14 Thread Max Kuhn
On Dec 14, 2007 10:52 AM, G Ilhamto [EMAIL PROTECTED] wrote: Hi R-helpers, Can some one tell me how to train 'mynn' of this type?: mynn - nnet(y ~ x1 + ..+ x8, data = lgist, size = 2, rang = 0.1, decay = 5e-4, maxit = 200) nnet will estimate model parameters for the model that you have

Re: [R] RJDBC to OpenOffice Calc as RODBC to MS Excel

2007-12-14 Thread Max Kuhn
On Dec 14, 2007 8:28 AM, Marc Schwartz [EMAIL PROTECTED] wrote: Bearing in mind that OO.org's Write and Calc documents are just 'zipped' XML files, it would be possible to parse the data stored within such documents. I suspect Max Kuhn has spent much time on this for odfWeave. I haven't

Re: [R] postResample R² and lm() R²

2007-12-11 Thread Max Kuhn
On Dec 11, 2007 3:35 PM, Giovane [EMAIL PROTECTED] wrote: So here comes my doubt: why do I have an value of 67.52% for R² when creating the model(that is , the model explains 67.52% of the data) and when I use this same model on the same input data, why does postResample return a very

Re: [R] editor under MAC system

2007-12-10 Thread Max Kuhn
I've been using ForgEdit. It is still in beta, but it works well. I have a syntax highlighting file htat I can send you (and I need to post on the gui/ide website). -- Max __ R-help@r-project.org mailing list

Re: [R] lm: how to calculate rsquared of the predicted values?

2007-12-08 Thread Max Kuhn
1. can I measure de R-squared value between the predicted(by the model) and real (observed) values.? 2. Measure the RMSE error . There is a function in the caret package called postResample that will do that (even if you aren't using resampling). As has been previously noted on this list,

Re: [R] Customizing x-axis with stripchart

2007-11-24 Thread Max Kuhn
On Nov 24, 2007 7:14 PM, Gabor Grothendieck [EMAIL PROTECTED] wrote: On Nov 24, 2007 7:01 PM, Duncan Murdoch [EMAIL PROTECTED] wrote: On 24/11/2007 6:22 PM, Paul Smith wrote: On Nov 24, 2007 11:14 PM, Duncan Murdoch [EMAIL PROTECTED] wrote: With plot, one can use to the option 'axes=F' to

Re: [R] odf and unzip: unzip not found

2007-11-18 Thread Max Kuhn
presumably my zip and unzip are not set up correctly but I dont know how to do that. I installed zip and unzip from info-zip.org as suggested in the help file, and think I managed set my Windows path to include the folders where they are installed, but still no luck. Any ideas? This has

<    1   2   3