Re: [R] function to solve equations

2009-09-10 Thread Ravi Varadhan
h tml -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Yash Gandhi Sent: Thursday, September 10, 2009 3:35 PM To: r-help@r-project.org Subject: [R] function to solve equations Hi, I am trying to solve this equ

[R] function to solve equations

2009-09-10 Thread Yash Gandhi
Hi, I am trying to solve this equation prob = exp(-3.33 + 0.0102*x)/(1+exp(-3.33 + 0.0102*x)). I want to write a function where I call the function and enter the 'prob' value and the output should be the 'x'. Im not sure how to write this. I have a basic structure but im not sure if its correc