Dear R users,

I have a problem. I would like to solve the following:

I have

pL = 1/(1+e^(-b0+b1))

pM = 1/(1+e^(-b0))

pH = 1/(1+e^(-b0-b1))

My target function is

TF= mean(pL,pM,pH) which must equal 0.5%

My non-linear constraint is

nl.Const = 1-(pM/pH), which must equal 20%, and would like the values of
both b0 and b1 where these conditions are met.

I have searched widely for an answer, and did think that Rdonlp2 would
suffice, only to find it no longer supported. I have solved this using
Excel's solver function, however, because of the non-linear constraint I am
having problems finding the solution in R.

Can the community suggest another method by which this might be solved?

As ever, many thanks for your time.

Mike Griffiths


-- 

*Michael Griffiths, Ph.D
*Statistician

*Upstream Systems*

8th Floor
Portland House
Bressenden Place
SW1E 5BH

<http://www.google.com/url?q=http%3A%2F%2Fwww.upstreamsystems.com%2F&sa=D&sntz=1&usg=AFrqEzfKYfaAalqvahwrpywpJDL9DxUmWw>

Tel   +44 (0) 20 7869 5147
Fax  +44 207 290 1321
Mob +44 789 4944 145

www.upstreamsystems.com<http://www.google.com/url?q=http%3A%2F%2Fwww.upstreamsystems.com%2F&sa=D&sntz=1&usg=AFrqEzfKYfaAalqvahwrpywpJDL9DxUmWw>

*griffi...@upstreamsystems.com <einst...@upstreamsystems.com>*

<http://www.upstreamsystems.com/>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to