Christophe LOOTS <Christophe.Loots <at> ifremer.fr> writes:

> 
> Thank you so much for your help.
> 
> The function "dbinom" seems to work very well.
> 
> However, I'm a bit lost with the "dnorm" function.
> 
> Apparently, I have to compute the mean "mu" and the standard deviation 
> "sd" but what does it mean exactly? I only have a vector of predicted 
> response and a vector of observed response that I would like to compare!
> 
> What are "mu" and "sigma".
> 


  mu is the mean (which you might as well set to the
predicted value).  sd is the standard deviation; in order
to calculate the likelihood in this case, you'll need an
*independent* estimate (from somewhere) of the standard
deviation.  Without thinking about it too carefully I think
you could probably get this from sqrt(sum((predicted-observed)^2)/(n-1))
....


> Thanks again.
> Christophe
>

______________________________________________
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