Re: [R] Tr: Re: how to pass weka classifier options with a meta classifier in RWeka?

2012-02-09 Thread Kari Ruohonen
On Thu, 2012-02-09 at 14:52 +0100, Milan Bouchet-Valat wrote: > Le jeudi 09 février 2012 à 15:31 +0200, Kari Ruohonen a écrit : > > > > And then I am trying to run the classifier with: > > > > nb.model<-AS(class~.,data=ex, > > co

[R] how to pass weka classifier options with a meta classifier in RWeka?

2012-02-09 Thread Kari Ruohonen
class called: weka.classifiers.bayes.NaiveBayes -D indicating that the way I am passing the argument "-D" to the NaiveBayes is incorrect. I am uncertain from the RWeka documentation how the passing mechanism of Weka_control is supposed to work with meta classifiers. All help is greatly appre

Re: [R] gam predictions with negbin model

2011-10-26 Thread Kari Ruohonen
On 26/10/11 12:10, Achim Zeileis wrote: On Wed, 26 Oct 2011, Kari Ruohonen wrote: Hi, I wonder if predict.gam is supposed to work with family=negbin() definition? It seems to me that the values returned by type="response" are far off the observed values. Here is an example outpu

[R] gam predictions with negbin model

2011-10-26 Thread Kari Ruohonen
in. 1st Qu. MedianMean 3rd Qu.Max. 0.8972 3.1610 4.8140 6.1170 8.1300 28.0100 I.e. the range and mean of observed values (y) are smaller than those of the predictions from the gam model. Should I somehow apply the estimated theta on these predictions? regards, Kari

[R] plot3d, color points by group

2011-02-18 Thread Kari
Hello I've created a 3d scatterplot, and had no problems labeling the points. However, I've been really struggling to change the color of the points based on a factor (see 'group' below). Is such a thing possible? My data look like this: food group x y z apple fruit 0.216 -0.11

Re: [R] Operating on count lists of non-equal lengths

2011-01-09 Thread Kari Manninen
Dear Dennis, Thank you so very much for your quick reply. What an introduction to R-help!! Especially I appreciated the time you put to explain the code privately. After a few hick-ups I got it working on my data as well. Regards, - Kari Quoting Dennis Murphy : Hi: This is an abridged

[R] Operating on count lists of non-equal lengths

2011-01-08 Thread Kari Manninen
100*[ pos% - neg%] for each group by TIME, Sector, while excluding the missing observations. ### This is not working Score <- 100 + 100*[sum(count( =="1")/sum(count(list( "-1", "0","1") - sum(count( =="-1")/sum(count(list( "-1", &q

[R] location of Tisean executables when using RTisean and jumping between linux and windows

2010-11-09 Thread Kari Ruohonen
es to the linux location so that when run in windows the executables in windows will be used? 2) Is the hard coding of the location of Tisean executables to the workspace image deliberate and necessary? Many thanks, Kari Ruohonen __ R-help@r-project.o

[R] scores for a new observation from PCAgrid() in pcaPP

2010-10-15 Thread Kari Ruohonen
computation of scores from the loadings and original observations is not possible? For the case pn. Many thanks for any help, Kari __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://w

Re: [R] font question on pdf device

2010-10-09 Thread Kari Ruohonen
On Fri, 2010-10-08 at 14:19 +0100, Ted Harding wrote: > On 08-Oct-10 12:44:12, Kari Ruohonen wrote: > > Hi, > > I wonder if this is something on my machine locally or R in general. > > > > When I do the following: > >> plot(c(0,1),c(0,1),main=expression(paste(

[R] font question on pdf device

2010-10-08 Thread Kari Ruohonen
PER=en_GB.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base Many thanks, Kari __

Re: [R] merging data frames with matrix objects when missing cases

2009-09-18 Thread Kari Ruohonen
a caution about the unexpected behaviour that someone could consider as an unwished feature. Kari On Fri, 2009-09-18 at 20:41 +0300, johannes rara wrote: > This has something to do with your data.frame structure > > see > > > str(df1) > 'data.frame': 3 obs. of 2 variabl

[R] merging data frames with matrix objects when missing cases

2009-09-18 Thread Kari Ruohonen
the behaviour that the third row of the second matrix X2 in the above example would be filled with NA for all columns? None of the merge() options does not seem to provide a solution. regards, Kari __ R-help@r-project.org mailing list https://stat.ethz.ch/

[R] residual standard error in rlm (MASS package)

2008-12-07 Thread Kari Ruohonen
methods base other attached packages: [1] MASS_7.2-44 regards, Kari Ruohonen __ 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 and provide

[R] lars package - lasso

2008-11-05 Thread Derow, Catherine Kari
Please could you clarify for me for me when using the lars (lasso) package what the parameter 'intercept' refers to and what the advantages and disadvantages of making this TRUE or FALSE are and when it should be TRUE and when FALSE. Also please could you clarify how 'eps' works and when it shoul

[R] lars

2008-10-23 Thread Derow, Catherine Kari
I am trying to use the lars package in R to carry out lasso analysis. However, I am having some problems. Please could you help me with the following questions: 1) Exactly what format do x and y need to be in for cv.lars(x, y) and lars (x, y)? And what information do x and y need to contain exac

Re: [R] error in display function of the ARM package

2007-10-31 Thread Kari Ruohonen
Thank you very much for the answer. Re-installation (I did a full reinstall of R and packages I use) helped and cured the problem. I had somehow missed the advice to re-install packages when upgrading to 2.6.0 and had only used update.packages(). regards, Kari On Wed, 2007-10-31 at 09:30 +

[R] error in display function of the ARM package

2007-10-31 Thread Kari Ruohonen
nBUGS_2.1-6 [5] coda_0.12-1 lme4_0.99875-9Matrix_0.999375-3 lattice_0.17-2 [9] MASS_7.2-37 loaded via a namespace (and not attached): [1] grid_2.6.0 Thanks, Kari __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-hel

[R] Error message from nlmer

2007-10-25 Thread Kari Ruohonen
Topt=13,kopt=3,m=.7)) The examples given on the help page of nlmer run with no errors. I would appreciate any hints and help to track the problem indicated by the error message. Thanks, Kari __ R-help@r-project.org mailing list https://stat.ethz.ch

[R] covariates in nlmer function

2007-09-14 Thread Kari Ruohonen
ook. The model without fixed effects covariates runs well but how to tell nlmer to include Type and Treatment similar to the nlme model on p. 374 in the PB2000 book? Or is this something that has not been implemented yet? regards, Kari Ruohonen __ R-help