[R] solve the equation in R

R. Michael Weylandt michael.weylandt at gmail.com
Thu May 17 22:03:12 CEST 2012


You could probably find a way to do this using nls(), optim() or
uniroot() but this seems to be very much a homework problem so I won't
say more.

solve() solves matrix linear equations... not what you want here. Read
the docs.

Michael

On Thu, May 17, 2012 at 2:53 PM, Pei-Ling Lin <barthealin at gmail.com> wrote:
> Hi all,
>
> I need to solve this following equation which the unknown value (here is "a") is on the exponent place, could anybody please help me to figure it out? I tried to use lm.sol() or solve() function but it doesn't work......
>
> Thanks for help,
> Peiling
>
>
>  (x,   y) = (2.21, 1.01)
>
>  y = 1 + x - ( 1 + (x)^a)^(1/a)
>
>
>
> ______________________________________________
> 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