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 correct.
calc <- function(prob){
prob <- exp(-3.33+0.0102*x)/(1+exp(-3.33 + 0.0102*x))
solve(prob)
x
}
Thanks
Yash Gandhi
______________________________________________
[email protected] 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.