# Solving equations in R

3 messages
Open this post in threaded view
|
Report Content as Inappropriate

## Solving equations in R

 Hi there, I would like to solve the following equation in R  to estimate 'a'. I have the amp, d, x and y. amp*y^2 = 2*a*(1-a)*(-a*d+(1-a)*x)^2 test data:    amp = 0.2370 y= 0.0233 d= 0.002 x= 0.091 Can anyone suggest how I can set this up? Thanks, Diviya         [[alternative HTML version deleted]] ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.
Open this post in threaded view
|
Report Content as Inappropriate

## Re: Solving equations in R

 On 23/07/2012 2:46 PM, Diviya Smith wrote: > Hi there, > > I would like to solve the following equation in R  to estimate 'a'. I have > the amp, d, x and y. > > amp*y^2 = 2*a*(1-a)*(-a*d+(1-a)*x)^2 > > test data: >     amp = 0.2370 y= > 0.0233 d= > 0.002 x= > 0.091 > Can anyone suggest how I can set this up? See ?polyroot. Duncan Murdoch ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.