- using R version 2.11.0 Under development (unstable) (2009-11-24 r50554)
- using session charset: UTF-8
- checking for file 'hsmm/DESCRIPTION' ... OK
- this is package 'hsmm' version '0.3-5'
- checking package name space information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking for executable files ... OK
- checking whether package 'hsmm' can be installed ... OK
- checking package directory ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the name space can be loaded with stated dependencies ... OK
- checking whether the name space can be unloaded cleanly ... OK
- checking for unstated dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking for portable use of $BLAS_LIBS ... OK
- checking examples ... ERROR
Running examples in 'hsmm-Ex.R' failed.
The error most likely occurred in:
> ### * hsmm
>
> flush(stderr()); flush(stdout())
>
> ### Name: hsmm
> ### Title: Hidden Semi-Markov Models
> ### Aliases: hsmm
> ### Keywords: ts
>
> ### ** Examples
>
>
> # Simulating observations:
> # (see hsmm.sim for details)
> pipar <- rep(1/3, 3)
> tpmpar <- matrix(c(0, 0.5, 0.5,
+ 0.7, 0, 0.3,
+ 0.8, 0.2, 0), 3, byrow = TRUE)
> rdpar <- list(p = c(0.98, 0.98, 0.99))
> odpar <- list(mean = c(-1.5, 0, 1.5), var=c(0.5, 0.6, 0.8))
> sim <- hsmm.sim(n = 2000, od = "norm", rd = "log",
+ pi.par = pipar, tpm.par = tpmpar,
+ rd.par = rdpar, od.par = odpar, seed = 3539)
>
> # Executing the EM algorithm:
> fit <- hsmm(sim$obs, od = "norm", rd = "log",
+ pi.par = pipar, tpm.par = tpmpar,
+ od.par = odpar, rd.par = rdpar)
iter = 0
LL = -2679.8735244075
iter = 1
LL = -2672.5701554768
iter = 2
LL = -2672.0704646245
iter = 3
LL = -2671.9150531947
iter = 4
LL = -2671.8564677665
iter = 5
LL = -2671.8298259249
iter = 6
LL = -2671.8159227696
iter = 7
LL = -2671.8078887270
iter = 8
LL = -2671.8028630557
Error in FB(censoring, tau, J, M, FB.d, FB.p.tpm, FB.pi.ini, FB.pdf, F, :
NA/NaN/Inf in foreign function call (arg 16)
Calls: hsmm -> FB -> .C
Execution halted