Skip to content

Please help me about the regress models!

3 messages · Leon_Long, Gabor Grothendieck, Greg Snow

#
I am a bigginer of R language.I need to prepare a PPT which deadline is 15
Nov. 2008.  I want to build a regress model with my own formula. The formula
is y=100/(1+exp(a+b*X)). I have no idea of the R program,please demonstrate
how to do it or give a good sample.
Anyone would help me? Thank you very much!
#
Check out
  ?nls
for a description and examples.
On Tue, Nov 11, 2008 at 10:33 PM, Leon_Long <longxien1976 at 126.com> wrote:
#
I think what you need is a good consultant, and with that deadline don't expect any bargains.

You have not specified your problem with enough detail yet, 2 options (there are probably many more) include:

Use the nls function with the model as stated

Use the lm function starting as lm( log( 100/y - 1 ) ~ x,

Those 2 options are based on different models of how the error comes into play, which is more appropriate depends on things that we cannot guess at based on your description.  What to do with either model once fit also depends on the question you want answered.

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111