[R] scale of gamma distribution

2007-03-28 Thread Xin
Dear All: If y~Ga(a,b) What's about the (n-1)y~Ga(a, (n-1)b), is this right? Many Thanks [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

[R] OPTIM--non finite finite different [13]

2006-11-15 Thread Xin
-623478636.8236478 Then the iter 20 vlaue suddelnly changes to a negative value and in the end the error mesage is non finite finite different [13] Has any one have this experience of what the wrong is? Thanks! Xin My function is: function (parameters,y,x1,x3) { alpha-parameters[1:10]; beta

[R] Combination (a large numbers)

2006-08-07 Thread Xin
letter in the row. Actually, I don't need that. Anyone can help on this? Thanks Xin [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] How to export data to Excel Spreadsheet?

2006-08-07 Thread Xin
in Excel is in one column. How to let the data list as matrix. Even I used mcomb3-matrix(comb3,nrow,ncol=) and use cat(mcomb3,file=c:\comb3.xls,fill=FALSE,sep=\n). But nothing changed. Thanks in advance! Xin [[alternative HTML version deleted

[R] Why the contrain does not work for selecting a particular range of data?

2006-07-23 Thread Xin
can help? Please! Thanks! Xin Shi My Estimation function for way two is : function (parameters, y, x1,x2) { nx1 - length(x1); nx2 - length(x2); ny - length(y); x1 - matrix(x1,nrow=nx1,ncol=1); x2 - matrix(x2,nrow=nx2,ncol=1); y - matrix(y,nrow=ny,ncol=1); ##Likelihood

[R] ifelse command

2006-07-22 Thread Xin
(mu)-log(mu+p))-lfactorial(y)-lgamma(p) ) else if(y0 x10 x2==3, L-lgamma(y+p)+p*(log(p)-log(mu+p))+y*(log(mu)-log(mu+p))-lfactorial(y)-lgamma(p) ) else L } Thanks a lot! Xin Shi [[alternative HTML version deleted]] __ R-help

[R] Why the contrain does not work for selecting a particular range of data?

2006-07-22 Thread Xin
. Anyone can help? Please! Thanks! Xin Shi [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

[R] Why different results with different initial values for MLE (optim)!

2006-06-22 Thread Xin
Hi, All: I used optim() to minimise likelihood function for fitting the data to a partiuclar distribution. The function is converged and the value of log-likelihood is different when I change the intial value. Whether it means the program does not work well? Thanks! Xin

[R] r-help@stat.math.ethz.ch

2006-05-16 Thread Xin
a lot! Xin Shi [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] rw2001 RMA in GeenSpring Error in sigToEnv

2005-02-21 Thread Liu, Xin
phenoData object. Created a new one. in: read.affybatch(filenames = files) Which information I should provide furthur or the latest version of R has some bugs? Thanks a lot! Xin LIU This e-mail is from ArraDx Ltd The e-mail and any files transmitted with it are confidentia...{{dropped

[R] leave-one-out cross validation for randomForest

2005-01-06 Thread Liu, Xin
Dear all, Can I get the leave-one-out cross validation error of randomForest in R? I only found tune(), which got the 10-fold cross validation error. Thanks for any information. Xin LIU This e-mail is from ArraDx Ltd The e-mail and any files transmitted with it are confidentia

[R] different result from the same errorest() in library( ipred)

2005-01-06 Thread Liu, Xin
=control.errorest(k=3), mtry=2)$err [1] 0.0533 errorest(Species ~ ., data=iris, model=randomForest, estimator = cv, est.para=control.errorest(k=3), mtry=2)$err [1] 0.04 Xin LIU This e-mail is from ArraDx Ltd The e-mail and any files transmitted with it are confidentia...{{dropped

Re: [R] New trellis settings

2004-11-29 Thread Xin Qi
Hi, Dear all R users: Does someone know whether R can calculate the Receiver Operating Characteristic (ROC) Curves? I didn't find it from the packages. Thanks a lot. --- Xin __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] (no subject)

2004-11-05 Thread Xin Qi
Dear all R users and helpers: I wonder whether there is a library call trees ( classification trees) in R? If there is, where can download it? Thank you very much. Xin Qi __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R]: a package problem

2004-10-28 Thread Xin Qi
2.0.0 version now. What should I do? Thank you very much. Xin __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] how to use biplot to show PC1 and PC3 or else?

2004-04-29 Thread xin
hello: I am trying to use biplot show relationship between PC1 and PC3 of princomp. There is example showing how to do it with PC1 and PC2. But I am totally out of idea for PC1 and PC3. Thanks very much for your kind help. Best Wishes, yours, xin

[R] newbie question on clustering performance

2004-03-20 Thread Xin Gong
is hot. Thanks in adavance, Xin Gong __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] how could I add legends?

2003-01-26 Thread Qin Xin
Hi All, I plotted several distribution curves in one graph but I do not know how to add legends say which is what distribution. Could someone help me? Thanks, __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help