[R] function of mixture normal with covariates

Ben Bolker bolker at ufl.edu
Wed Dec 31 16:05:39 CET 2008

Tal & Julia Vider <jtvider <at> 013.net> writes:

> Hello,
> My name is Julia and I'm doing my phd on roc analysis.
> I'm trying to write a maximization function for the likelihood attached in
> the document.
> For some reason it's not working I keep getting \this error:

  You're missing a couple of close-parentheses somewhere --
perhaps after +log(v_pred)).

 When I add )) after that I get a syntactically
correct likelihood function.  Of course that does not
guarantee that those parentheses are actually in the
correct place mathematically (I haven't looked at
your PDF in any more detail).

  In the long run and maybe even in the short run
you will make your life easier if you use a programmer's
editor of some sort (emacs, Tinn-R, ... depending on
your taste and OS) that will let you match parentheses
more easily.

  good luck
    Ben Bolker

More information about the R-help mailing list