[Distr-commits] r92 - pkg/distrMod/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Feb 26 09:07:21 CET 2008


Author: stamats
Date: 2008-02-26 09:07:21 +0100 (Tue, 26 Feb 2008)
New Revision: 92

Modified:
   pkg/distrMod/man/MLEstimator.Rd
Log:
extended example

Modified: pkg/distrMod/man/MLEstimator.Rd
===================================================================
--- pkg/distrMod/man/MLEstimator.Rd	2008-02-26 07:57:48 UTC (rev 91)
+++ pkg/distrMod/man/MLEstimator.Rd	2008-02-26 08:07:21 UTC (rev 92)
@@ -59,9 +59,16 @@
 
 ## implementation of ML-estimator of package MASS
 library(MASS)
-fitdistr(x, "gamma")
+(res1 <- fitdistr(x, "gamma"))
+
+## comparison
+## shape
 res$estimate[2]
 ## rate
 1/res$estimate[1]
+## log-likelihood
+res1$loglik
+## negative log-likelihood
+res$criterion
 }
 \keyword{univar}



More information about the Distr-commits mailing list