[R] questions about optim

2004-05-15 Thread Dean Lee
Hi, I am trying to do parameter estimation with optim, but I can't get it to work quite right-- I have an equation X = Y where X is a gaussian, Y is a multinomial distribution, and I am trying to estimate the probabilities of Y( the mean and sd of X are known ), Theta1, Theta2, Theta3, and

Re: [R] questions about optim

2004-05-15 Thread Spencer Graves
1. Have you considered parameterizing the problem in terms of (Theta1, Theta2, Theta3), and then computing Theta4 - (1-Theta1-Theta2-Theta3) in the function you ask optim to optimize? 2. Beyond this, I don't understand what you are trying to do. Do you want to estimate a

Re: [R] questions about optim

2004-05-15 Thread Dean Lee
] Subject: Re: [R] questions about optim Date: Sat, 15 May 2004 13:38:38 -0700 1. Have you considered parameterizing the problem in terms of (Theta1, Theta2, Theta3), and then computing Theta4 - (1-Theta1-Theta2-Theta3) in the function you ask optim to optimize? 2. Beyond this, I don't

Re: [R] questions about optim

2004-05-15 Thread Spencer Graves
being clear. What are some of the approaches that I can try in this case? Thanks. Regards, -Dean From: Spencer Graves [EMAIL PROTECTED] To: Dean Lee [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [R] questions about optim Date: Sat, 15 May 2004 13:38:38 -0700 1. Have you considered