s-news
[Top] [All Lists]

Re: non_linear

To: s-news@wubios.wustl.edu
Subject: Re: non_linear
From: Andreas Svensson <andreas.svensson@bio.ntnu.no>
Date: Thu, 06 Apr 2006 17:05:03 +0200
Organization: NTNU
Reply-to: andreas.svensson@bio.ntnu.no
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910
I'm not sure I got the question, but I followed Crawley, Statistical Computing page 413-415 for a similar problem last week. Hope it helps

Y~a-b*exp(-c*x)
plot your data "plot(Y,x)" and add some approx starting values.
a=asymptote of Y
b=a-intercept
c=curvature

#model:
exp.curve<- nls(Y~a-b*exp(-c*x), start=list(a=170,b=30,c=0.2))

#to plot and get trend line
plot(Y,x)
xaxis<-seq(0.7,7,0.01) "frm 0.7 to 7 in steps of 0.1
lines(xaxis,predict(exp.curve,list(x=xaxis)))

/Andreas
--------------------------
Dear Subscribers,
I tried to form a nonlinear model for :y~a+b*exp(x) where a & b are specified.this expression is stated in the model field, but the message I received was set_up nonlinear.How can this expression be stated with s-plus 7?
thanks
lanre



<Prev in Thread] Current Thread [Next in Thread>
  • non_linear, olanrewaju sanni
    • Re: non_linear, Andreas Svensson <=