Skip to content

Commit 092a43b

Browse files
committed
fix typo; drop "donttest" from example
1 parent 1a90db7 commit 092a43b

File tree

5 files changed

+44
-50
lines changed

5 files changed

+44
-50
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: pomp
22
Type: Package
33
Title: Statistical Inference for Partially Observed Markov Processes
4-
Version: 6.0.2.2
5-
Date: 2024-12-15
4+
Version: 6.0.2.3
5+
Date: 2024-12-18
66
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="kingaa@umich.edu",comment=c(ORCID="0000-0001-6159-3207")),
77
person(given=c("Edward","L."),family="Ionides",role="aut",comment=c(ORCID="0000-0002-4190-0174")) ,
88
person(given="Carles",family="Bretó",role="aut",comment=c(ORCID="0000-0003-4695-4902")),

R/userdata.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##' Facilities for making additional information to basic components
1+
##' Facilities for making additional information available to basic model components
22
##'
33
##' When \acronym{POMP} basic components need information they can't get from parameters or covariates.
44
##'

examples/kf.R

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
1-
\donttest{ # takes too long for R CMD check
1+
if (require(dplyr)) {
22

3-
if (require(dplyr)) {
3+
gompertz() -> po
44

5-
gompertz() -> po
5+
po |>
6+
as.data.frame() |>
7+
mutate(
8+
logY=log(Y)
9+
) |>
10+
select(time,logY) |>
11+
pomp(times="time",t0=0) |>
12+
kalmanFilter(
13+
X0=c(logX=0),
14+
A=matrix(exp(-0.1),1,1),
15+
Q=matrix(0.01,1,1),
16+
C=matrix(1,1,1),
17+
R=matrix(0.01,1,1)
18+
) -> kf
619

7-
po |>
8-
as.data.frame() |>
9-
mutate(
10-
logY=log(Y)
11-
) |>
12-
select(time,logY) |>
13-
pomp(times="time",t0=0) |>
14-
kalmanFilter(
15-
X0=c(logX=0),
16-
A=matrix(exp(-0.1),1,1),
17-
Q=matrix(0.01,1,1),
18-
C=matrix(1,1,1),
19-
R=matrix(0.01,1,1)
20-
) -> kf
20+
po |>
21+
pfilter(Np=1000) -> pf
2122

22-
po |>
23-
pfilter(Np=1000) -> pf
23+
kf$logLik
24+
logLik(pf) + sum(log(obs(pf)))
2425

25-
kf$logLik
26-
logLik(pf) + sum(log(obs(pf)))
27-
28-
}
2926
}

man/kf.Rd

Lines changed: 20 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/userdata.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)