gt; 85 10
>>
>>
>>
>> - Original Message
>> From: Bill Hyman
>> To: r-help@r-project.org
>> Sent: Wednesday, September 9, 2009 11:23:26 AM
>> Subject: [R] fitting nonlinear model
>>
>> I only have 4 data points and want to fit
Bill Hyman wrote:
>
> Hi Milton,
>
> Thanks for your help. Actually, I would like to fit a non-linear fashion.
> For some data like below, 'lm' may not work very well. Do you have idea?
> Thanks again!
>
>
That's why information equation you are trying to fit is very important. For
example,
: R-help@r-project.org
Sent: Wednesday, September 9, 2009 12:01:52 PM
Subject: Re: [R] fitting nonlinear model
Hi Bill,
I am not sure what you want, but...
mydf<-read.table(stdin(), head=T, sep=",")
Np,year
96,2
91,5
89,7
85,10
plot(Np~year, data=mydf)
mymodel<-lm(Np~year, data=mydf
gt; My data look like:
>
> Np year
> 962
> 915
> 897
> 85 10
>
>
>
> - Original Message
> From: Bill Hyman
> To: r-help@r-project.org
> Sent: Wednesday, September 9, 2009 11:23:26 AM
> Subject: [R] fitting nonlinear model
>
Bill Hyman wrote:
>
> My data look like:
>
> Np year
> 962
> 915
> 897
> 85 10
>
>
And which equation are you trying to fit to this data?
-Charlie
-
Charlie Sharpsteen
Undergraduate
Environmental Resources Engineering
Humboldt State University
--
View this message in co
My data look like:
Np year
962
915
897
85 10
- Original Message
From: Bill Hyman
To: r-help@r-project.org
Sent: Wednesday, September 9, 2009 11:23:26 AM
Subject: [R] fitting nonlinear model
I only have 4 data points and want to fit a curve. It does not work in "m
I only have 4 data points and want to fit a curve. It does not work in "modreg"
due to too few data. Do you have any idea? Many thanks!
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide ht
7 matches
Mail list logo