[Depmix-commits] r534 - in pkg/depmixS4: . man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Jun 22 20:55:28 CEST 2012


Author: maarten
Date: 2012-06-22 20:55:28 +0200 (Fri, 22 Jun 2012)
New Revision: 534

Modified:
   pkg/depmixS4/DESCRIPTION
   pkg/depmixS4/man/depmix.Rd
Log:
- changed version to 1.3-0
- added example of classification likelihood in "depmix" help file (still needs vignette)

Modified: pkg/depmixS4/DESCRIPTION
===================================================================
--- pkg/depmixS4/DESCRIPTION	2012-06-22 17:21:33 UTC (rev 533)
+++ pkg/depmixS4/DESCRIPTION	2012-06-22 18:55:28 UTC (rev 534)
@@ -1,5 +1,5 @@
 Package: depmixS4
-Version: 1.2-0
+Version: 1.3-0
 Date: 2012-06-20
 Title: Dependent Mixture Models - Hidden Markov Models of GLMs and Other Distributions in S4
 Author: Ingmar Visser <i.visser at uva.nl>, Maarten Speekenbrink <m.speekenbrink at ucl.ac.uk>

Modified: pkg/depmixS4/man/depmix.Rd
===================================================================
--- pkg/depmixS4/man/depmix.Rd	2012-06-22 17:21:33 UTC (rev 533)
+++ pkg/depmixS4/man/depmix.Rd	2012-06-22 18:55:28 UTC (rev 534)
@@ -255,6 +255,12 @@
 # plot BIC and posterior state sequence for the 2-state model
 plot(as.ts(posterior(fm2)[,3]),ylab="probability",main="Posterior probability of state 2 (volatile, negative markets).")
 
+# using "hard" assignment of observations to the states, we can maximise the
+# classification likelihood instead of the usual marginal likelihood
+# (this example uses the model at the start of these examples)
+set.seed(1)
+# fit the model by calling fit
+fm3 <- fit(mod,emcontrol=em.control(classification="hard"))
 
 }
 



More information about the depmix-commits mailing list