[R] Compare two normal to one normal

Charles C. Berry ccberry at ucsd.edu
Wed Sep 23 00:23:37 CEST 2015


On Tue, 22 Sep 2015, John Sorkin wrote:

>
> In any event, I still don't know how to fit a single normal distribution 
> and get a measure of fit e.g. log likelihood.
>

Gotta love R:

> y <- rnorm(10)
> logLik(glm(y~1))
'log Lik.' -17.36071 (df=2)

HTH,

Chuck



More information about the R-help mailing list