Re: [R] Need help with self-defined function to perform nonlinear regression and get prediction interval

2013-01-02 Thread Tianchan Niu
problems. Thanks, Tianchan -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Wednesday, January 02, 2013 2:16 PM To: Tianchan Niu Cc: r-help@r-project.org Subject: Re: [R] Need help with self-defined function to perform nonlinear regression and get

Re: [R] How to calculate the power of Wilcoxon signed rank test

2011-09-13 Thread Tianchan Niu
a wrong question? Thank you! From: David Winsemius [dwinsem...@comcast.net] Sent: Tuesday, September 13, 2011 4:24 PM To: Tianchan Niu Cc: r-help@r-project.org Subject: Re: [R] How to calculate the power of Wilcoxon signed rank test On Sep 13, 2011, at 3:34 PM

[R] Question about cut()

2010-12-14 Thread Tianchan Niu
Dear all, I would like to use cut() to make numerics to factors, the sample codes are as follows. However, the result is not what I want, since r[3] = 9 should be in the interval of 8-10% rather than 2-4%. Maybe cut() is not the right function to use for my situation. Please help. r -

[R] Error: invalid type(list) for variable when using lm()

2010-11-16 Thread Tianchan Niu
Dear All,I would like to do multiple regression in R. I used: lm(y~X), where y is a n by 1 vector, and X is a n by m matrix. I kept getting the error message:Error in model.frame.default(formula = y ~ X,  :  invalid type (list) for variable 'X'. However, when I used:

[R] ERROR: Object not found

2010-09-20 Thread Tianchan Niu
Dear All, I am trying to use ode solver rk4 to solve an ODE system, however, it keeps saying: Error in eval(expr, envir, enclos) : object dIN not found. The sample codes are enclosed as follows, please help me. Thank you very much! rm(list=ls()) library(odesolve) # The ODE system

[R] Ask for help with Error: Object not found

2010-09-20 Thread Tianchan Niu
Dear All, I am trying to use ode solver rk4 to solve an ODE system, however, it keeps saying: Error in eval(expr, envir, enclos) : object dIN not found. The sample codes are enclosed as follows, please help me. Thank you very much! rm(list=ls()) library(odesolve) # The ODE system

[R] More accurate ODE solver?

2010-09-16 Thread Tianchan Niu
Dear All, I was using rk4 and lsoda to solve a ODE system. However, both of them gave bad accurate solutions, especially compared with Matlab solver ODE45. For example, ODE45 gave solutions that can go to a stable level (about 1.6) when time goes to infinity, however, the solutions from lsoda are

[R] More accurate ODE solver?

2010-09-16 Thread Tianchan Niu
Dear All, I was using rk4 and lsoda to solve a ODE system. However, both of them gave bad accurate solutions, especially compared with Matlab solver ODE45. For example, ODE45 gave solutions that can go to a stable level (about 1.6) when time goes to infinity, however, the solutions from lsoda are