[R] fit a non-linear equation with several dependent variables

stephen sefick sas0025 at auburn.edu
Sun Jan 23 21:40:59 CET 2011


?nls
On Jan 23, 2011, at 10:00 AM, laleluia wrote:

>
>
> Hi
>
> I have a very big data.frame :
>
> str(fslu12)
> 'data.frame':	277200 obs. of  11 variables:
> $ V1 : num  304 304 304 304 304 ...
> $ V2 : num  300 300 300 300 300 300 300 300 300 300 ...
> $ V3 : num  10 10 10 10 10 10 10 10 10 10 ...
> $ V4 : num  79.1 52 30.6 37.3 63 79.1 52 30.6 37.3 63 ...
> $ V5 : num  0.005 0.00498 0.00496 0.00491 0.00484 ...
> $ V6 : num  0.01 0.00997 0.00988 0.00969 0.00954 ...
> $ V7 : num  0.000618 0.001457 0.002777 0.004696 0.005373 ...
> $ V8 : num  0.1295 0.0309 0.0407 0.0211 -0.0095 ...
> $ V9 : num  0 -0.000301 -0.000911 -0.001238 -0.000419 ...
> $ V10: num  -0.0002 -0.000201 -0.000202 -0.000814 -0.000619 -0.0002
> -0.000402 -0.000404 -0.000611 -0.000205 ...
> $ V11: Factor w/ 6 levels "n1","n2","n3",..: 2 2 2 2 2 2 2 2 2 2 ...
>
> And I would like to fit an equation of the form "y = a + bx^(1/2)  *
> (1-exp(-c*z^d))" , where a , b , c and d are constant and x and z are
> dependent variables .
>
> applied to my data.frame the equation would be:
> V8 = a + b*V5^(1/2)  * (1-exp(-c*V6^d)) , data=fslu12
>
> Does anyone knows about a package/function that could do this?
>
> thanks
>
>
> -- 
> View this message in context: http://r.789695.n4.nabble.com/fit-a-non-linear-equation-with-several-dependent-variables-tp3232660p3232660.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list