s-news
[Top] [All Lists]

help with nonlinear regression (nls or nlme)

To: S-news <s-news@wubios.wustl.edu>
Subject: help with nonlinear regression (nls or nlme)
From: Nicola Koper <nkoper@yahoo.com>
Date: Wed, 20 Sep 2006 14:44:09 -0700 (PDT)
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=FUscAbmFCm0Nz0IiQi1zc+IXnSjQ0pdQchMqNkjT/ZoOdMNfDgxa0Tvi2fchLt5i0M5Z98sgGVWSulxBLUKTyDyn78pRikLerpBmksalyWxp+phqNjWnA+nU5k0f+xq7rdyzT3s4crXjYuCDJAMZK4gftPhwNJHmFTIQN9zGVtg= ;
Hi everyone, 

I'm just starting to use nlme, and am practicing
starting with nls (as illustrated on page 347 of
pinheiro and bates). 

For learning purposes, I am starting with a simple
model,

Model.edge <- nls(richness.song.by.round ~ 
INT/(1+(0.25*((disttowkm/ICP)^B))),
data=upland.point.counts.bt.with.wetlands5, start =
c(INT = 2, ICP = 1, B = 1))

I am getting the error "546 NAs found in value, while
calling subroutine do_nls"

This is suspicious, as there are 547 rows of data, but
I can't figure out the specific problem as neither the
response variable nor the independent variable
(disttowkm) have missing values.

Any help would be appreciated.
Nicky



************************************************************

Dr. Nicola Koper
Assistant Professor
Natural Resources Institute
University of Manitoba

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

<Prev in Thread] Current Thread [Next in Thread>