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
Hi, I am trying to replicate a training of AttributeSelectedClassifier with CFsSubsetEval, BestFirst and NaiveBayes that I have initially done with Weka. Now, I am trying to use RWeka in R. I have a problem of passing arguments to the CfsSubsetEval, BestFirst and NaiveBayes. I have first created a

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
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 output from the negbin examples: > set.seed(3) > n<-400 > dat<-gamSim(1,n=n) > g<-exp(dat$f/5) > dat$

[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
Hi, I a trying to compute scores for a new observation based on previously computed PCA by PCAgrid() function in the pcaPP package. My data has more variables than observations. Here is an imaginary data set to show the case: > n.samples<-30 > n.bins<-1000 > x.sim<-rep(0,n.bins) > V.sim<-diag(n.bi

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
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(symbol("D"),"D",sep=""))) I get a plot with a title having uppercase delta followed by "D". But in the following > pdf(file="deltaTest.pdf") > plot(c(0,1),

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

2009-09-18 Thread Kari Ruohonen
int 1 2 > $ d: int 11 12 > $ e: int 13 14 > > merge(df1,df2) > a b c d e > 1 1 1 4 11 13 > 2 2 2 5 12 14 > > merge(df1, df2, all=T) > a b c d e > 1 1 1 4 11 13 > 2 2 2 5 12 14 > 3 3 3 6 NA NA > > > > 2009/9/18 Kari Ruohonen : > &

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

2009-09-18 Thread Kari Ruohonen
Hi, I have faced a problem with the merge() function when trying to merge two data frames that have a common index but the second one does not have cases for all indexes in the first one. With usual variables R fills in the missing cases with NA if all=T is requested. But if the variable is a matri

[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

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

2007-10-31 Thread Kari Ruohonen
, Prof Brian Ripley wrote: > On Wed, 31 Oct 2007, Kari Ruohonen wrote: > > > Hi, > > > > I get the following error message when trying to use the display > > function on the ARM package: > > You seem to mean 'arm' not 'ARM'. > > &

[R] error in display function of the ARM package

2007-10-31 Thread Kari Ruohonen
Hi, I get the following error message when trying to use the display function on the ARM package: > display(model) Error in .Internal(round(x, digits)) : no internal function "round" Looks like some kind of mismatch between the ARM package and some others? Can I somehow get around it? I have lea

[R] Error message from nlmer

2007-10-25 Thread Kari Ruohonen
Hi, I have R 2.6.0 with updated lme4 and Matrix packages, and I am trying to fit a nonlinear multilevel model. I get the following error message: Error in nlmer(f ~ grModel(x, w, Tmin, Tmax, Topt, kopt, m) ~ kopt | flat, : gradient attribute of evaluated model must be a numeric matrix and I

[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