Re: [R] [Help] Error when using nls

2007-09-30 Thread Yi-Min Huang
Thank you Charilaos, I think I misunderstood the 'selfStart'. After checking 'selfStart', I think I don't have the ability to create a selfStart object. I don't have good sense to guess the initial values. So I tried 'poor guess' by nls. But I got erroe message as: Error in c * (ev^2) : non-

Re: [R] [Help] Error when using nls

2007-09-29 Thread Charilaos Skiadas
On Sep 29, 2007, at 12:00 AM, Niner wrote: > Hi, > > I am a student of Earthquake Engineering, and am new to R. > Currently I try to run nonlinear regression analysis by R. My data > has three variables: X, Y, and Z. Z is a function of (X, Y). My R > script is as below. In general it is reco

[R] [Help] Error when using nls

2007-09-28 Thread Niner
Hi, I am a student of Earthquake Engineering, and am new to R. Currently I try to run nonlinear regression analysis by R. My data has three variables: X, Y, and Z. Z is a function of (X, Y). My R script is as below. rm(list=ls()) # read in data Alldata <- read.table("~/Documents/R/Wu_