Re: [R] Help with optim() to maximize log-likelihood

2015-03-10 Thread Prof J C Nash (U30A)
mputing your function at the initial parameters EVERY time. (Or turn on the trace etc.) JN On 15-03-10 07:00 AM, r-help-requ...@r-project.org wrote: > Message: 12 > Date: Mon, 9 Mar 2015 16:18:06 +0200 > From: Sophia Kyriakou > To: r-help@r-project.org > Subject: [R] Help w

Re: [R] Help with optim() to maximize log-likelihood

2015-03-09 Thread Sophia Kyriakou
yes Ben, this works indeed! Thanks a million!! On Mon, Mar 9, 2015 at 7:17 PM, Ben Bolker wrote: > Sophia Kyriakou gmail.com> writes: > > > > > hello, I am using the optim function to maximize the log likelihood of a > > generalized linear mixed model and I am trying to replicate glmer's > > es

Re: [R] Help with optim() to maximize log-likelihood

2015-03-09 Thread Ben Bolker
Sophia Kyriakou gmail.com> writes: > > hello, I am using the optim function to maximize the log likelihood of a > generalized linear mixed model and I am trying to replicate glmer's > estimated components. If I set both the sample and subject size to q=m=100 > I replicate glmer's results for the

[R] Help with optim() to maximize log-likelihood

2015-03-09 Thread Sophia Kyriakou
hello, I am using the optim function to maximize the log likelihood of a generalized linear mixed model and I am trying to replicate glmer's estimated components. If I set both the sample and subject size to q=m=100 I replicate glmer's results for the random intercept model with parameters beta=-1