-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix typo; drop "donttest" from example
- Loading branch information
Showing
5 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: pomp | ||
Type: Package | ||
Title: Statistical Inference for Partially Observed Markov Processes | ||
Version: 6.0.2.2 | ||
Date: 2024-12-15 | ||
Version: 6.0.2.3 | ||
Date: 2024-12-18 | ||
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="[email protected]",comment=c(ORCID="0000-0001-6159-3207")), | ||
person(given=c("Edward","L."),family="Ionides",role="aut",comment=c(ORCID="0000-0002-4190-0174")) , | ||
person(given="Carles",family="Bretó",role="aut",comment=c(ORCID="0000-0003-4695-4902")), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
\donttest{ # takes too long for R CMD check | ||
if (require(dplyr)) { | ||
|
||
if (require(dplyr)) { | ||
gompertz() -> po | ||
|
||
gompertz() -> po | ||
po |> | ||
as.data.frame() |> | ||
mutate( | ||
logY=log(Y) | ||
) |> | ||
select(time,logY) |> | ||
pomp(times="time",t0=0) |> | ||
kalmanFilter( | ||
X0=c(logX=0), | ||
A=matrix(exp(-0.1),1,1), | ||
Q=matrix(0.01,1,1), | ||
C=matrix(1,1,1), | ||
R=matrix(0.01,1,1) | ||
) -> kf | ||
|
||
po |> | ||
as.data.frame() |> | ||
mutate( | ||
logY=log(Y) | ||
) |> | ||
select(time,logY) |> | ||
pomp(times="time",t0=0) |> | ||
kalmanFilter( | ||
X0=c(logX=0), | ||
A=matrix(exp(-0.1),1,1), | ||
Q=matrix(0.01,1,1), | ||
C=matrix(1,1,1), | ||
R=matrix(0.01,1,1) | ||
) -> kf | ||
po |> | ||
pfilter(Np=1000) -> pf | ||
|
||
po |> | ||
pfilter(Np=1000) -> pf | ||
kf$logLik | ||
logLik(pf) + sum(log(obs(pf))) | ||
|
||
kf$logLik | ||
logLik(pf) + sum(log(obs(pf))) | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.