[R] Optim question

2006-08-24 Thread Doran, Harold
This is a very basic question, but I am a bit confused with optim. I want to get the MLEs using optim which could replace the newton-raphson code I have below which also gives the MLEs. The function takes as input a vector x denoting whether a respondent answered an item correctly (x=1) or not

Re: [R] Optim question

2006-08-24 Thread Dimitris Rizopoulos
: Doran, Harold [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Thursday, August 24, 2006 2:54 PM Subject: [R] Optim question This is a very basic question, but I am a bit confused with optim. I want to get the MLEs using optim which could replace the newton-raphson code I have below which