diff --git a/404.html b/404.html index 34ba64f..067baee 100644 --- a/404.html +++ b/404.html @@ -68,7 +68,7 @@
This shows no pattern in the quantile-quantile plot, as expected -given that we have a correctly specified model
+given that we have a correctly specified model. We can also confirm that +this gives identical to results to the linear model: +
+res = loo_residuals(fit, what="quantiles")
+res0 = resid(Lm,"response")
+plot( x=res0/sd(res0), y=qnorm(res[,2]), xlab="linear model residuals", ylab="dsem residuals" )
+abline(a=0,b=1)
We first demonstrate that dsem
gives identical results
to dynlm
for a well-known econometric model, the Klein-1
model.
+- -data(KleinI, package="AER") TS = ts(data.frame(KleinI, "time"=time(KleinI) - 1931)) @@ -215,13 +222,13 @@
Comparison with dynamic linear mo expand_limits(x = c(-0.2,1), y = c(-0.2,0) ) p1
- +-p2
+ ++p2
- +grid.arrange( arrangeGrob(p3, p4, nrow=2) )
Results show that both packages provide (almost) identical estimates and standard errors.
We can also compare results using the Laplace approximation against @@ -230,13 +237,13 @@
Comparison with dynamic linear mo variance parameters (presumably because those follow a chi-squared distribution with positive skewness), but otherwise the two produce similar estimates. -
diff --git a/reference/as_fitted_DAG.html b/reference/as_fitted_DAG.html index ad23378..626cbe5 100644 --- a/reference/as_fitted_DAG.html +++ b/reference/as_fitted_DAG.html @@ -87,7 +87,7 @@+-library(tmbstan) # MCMC for both fixed and random effects mcmc = tmbstan( fit$obj, init="last.par.best" ) summary_mcmc = summary(mcmc)
+- +# long-form data frame m1 = summary_mcmc$summary[1:17,c('mean','sd')] rownames(m1) = paste0( "b", seq_len(nrow(m1)) ) @@ -253,7 +260,7 @@
Comparison with dynamic linear mo geom_point( position=position_dodge(0.9) ) + geom_errorbar( aes(ymax=as.numeric(upper),ymin=as.numeric(lower)), width=0.25, position=position_dodge(0.9)) #
diff --git a/pkgdown.js b/pkgdown.js index 9757bf9..1a99c65 100644 --- a/pkgdown.js +++ b/pkgdown.js @@ -152,3 +152,11 @@ async function searchFuse(query, callback) { }); }); })(window.jQuery || window.$) + +document.addEventListener('keydown', function(event) { + // Check if the pressed key is '/' + if (event.key === '/') { + event.preventDefault(); // Prevent any default action associated with the '/' key + document.getElementById('search-input').focus(); // Set focus to the search input + } +}); diff --git a/pkgdown.yml b/pkgdown.yml index 9f364d7..c348cf2 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -1,7 +1,7 @@ pandoc: 3.1.11 -pkgdown: 2.1.0 +pkgdown: 2.1.1 pkgdown_sha: ~ articles: dynamic_factor_analysis: dynamic_factor_analysis.html vignette: vignette.html -last_built: 2024-09-17T23:55Z +last_built: 2024-09-18T16:18Z diff --git a/reference/TMBAIC.html b/reference/TMBAIC.html index 381a468..13602b9 100644 --- a/reference/TMBAIC.html +++ b/reference/TMBAIC.html @@ -77,7 +77,7 @@Comparison with vector autoregressive models @@ -273,7 +280,7 @@
Comparison with vector aut
Here, we compare fits using
-dsem
withdynlm
, as well as a vector autoregressive model packagevars
, and finally withMARSS
.+- +data(isle_royale) data = ts( log(isle_royale[,2:3]), start=1959) @@ -391,7 +398,7 @@
Comparison with vector aut ggarrange( p1, p2, p3, labels = c("Time-series data", "Estimated effects", "Fitted path digram"), ncol = 1, nrow = 3)
Results again show that
dsem
can estimate parameters for a vector autoregressive model (VAM), and it exactly matches results fromvars
, usingdynlm
, or using @@ -402,7 +409,7 @@Multi-causal ecosystem synthesis
We next replicate an analysis involving climate, forage fishes, stomach contents, and recruitment of a predatory fish.
-diff --git a/news/index.html b/news/index.html index 0852c1a..57e88ba 100644 --- a/news/index.html +++ b/news/index.html @@ -86,7 +86,7 @@+-data(bering_sea) Z = ts( bering_sea ) family = rep('fixed', ncol(bering_sea)) @@ -436,7 +443,7 @@
Multi-causal ecosystem synthesis control = dsem_control(use_REML=FALSE, quiet=TRUE) ) ParHat = fit$obj$env$parList() # summary( fit )
diff --git a/index.html b/index.html index f1acfdb..ede4fbd 100644 --- a/index.html +++ b/index.html @@ -126,7 +126,7 @@+- -# Timeseries plot oldpar <- par(no.readonly = TRUE) par( mfcol=c(3,3), mar=c(2,2,2,0), mgp=c(2,0.5,0), tck=-0.02 ) @@ -455,8 +462,8 @@
Multi-causal ecosystem synthesis y=c(tmp[,3],rev(tmp[,4])), col=rgb(0,0,1,0.2), border=NA ) } par(oldpar)
+ +- +# library(phylopath) library(ggplot2) @@ -485,7 +492,7 @@
Multi-causal ecosystem synthesis# p2+ggtitle("Estimated p-values"), nrow=2), ncol=2 ) ) ggarrange(p1, p2, labels = c("Simultaneous effects", "Two-sided p-value"), ncol = 1, nrow = 2)
These results are further discussed in the paper describing dsem.
@@ -494,7 +501,7 @@Site-replicated trophic cascadeFinally, we replicate an analysis involving a trophic cascade involving sea stars predators, sea urchin consumers, and kelp producers. -
@@ -663,7 +670,7 @@+- +data(sea_otter) Z = ts( sea_otter[,-1] ) @@ -648,7 +655,7 @@
Site-replicated trophic cascade p2 + scale_x_continuous(expand = c(0.3, 0)), labels = c("Simultaneous effects", "Two-sided p-value"), ncol = 1, nrow = 2)
Again, these results are further discussed in the paper describing dsem.
Site-replicated trophic cascade
Citation
diff --git a/articles/vignette_files/figure-html/unnamed-chunk-10-1.png b/articles/vignette_files/figure-html/unnamed-chunk-10-1.png index 0a30248..832a3a1 100644 Binary files a/articles/vignette_files/figure-html/unnamed-chunk-10-1.png and b/articles/vignette_files/figure-html/unnamed-chunk-10-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-12-1.png b/articles/vignette_files/figure-html/unnamed-chunk-12-1.png index a9cb2dc..0a30248 100644 Binary files a/articles/vignette_files/figure-html/unnamed-chunk-12-1.png and b/articles/vignette_files/figure-html/unnamed-chunk-12-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-13-1.png b/articles/vignette_files/figure-html/unnamed-chunk-13-1.png index bd5ea2c..a9cb2dc 100644 Binary files a/articles/vignette_files/figure-html/unnamed-chunk-13-1.png and b/articles/vignette_files/figure-html/unnamed-chunk-13-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-14-1.png b/articles/vignette_files/figure-html/unnamed-chunk-14-1.png new file mode 100644 index 0000000..bd5ea2c Binary files /dev/null and b/articles/vignette_files/figure-html/unnamed-chunk-14-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-3-1.png b/articles/vignette_files/figure-html/unnamed-chunk-3-1.png index 3f16749..1d1a101 100644 Binary files a/articles/vignette_files/figure-html/unnamed-chunk-3-1.png and b/articles/vignette_files/figure-html/unnamed-chunk-3-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-4-1.png b/articles/vignette_files/figure-html/unnamed-chunk-4-1.png index dd700b1..9417abd 100644 Binary files a/articles/vignette_files/figure-html/unnamed-chunk-4-1.png and b/articles/vignette_files/figure-html/unnamed-chunk-4-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-5-1.png b/articles/vignette_files/figure-html/unnamed-chunk-5-1.png new file mode 100644 index 0000000..dd700b1 Binary files /dev/null and b/articles/vignette_files/figure-html/unnamed-chunk-5-1.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-5-2.png b/articles/vignette_files/figure-html/unnamed-chunk-5-2.png new file mode 100644 index 0000000..5715ce6 Binary files /dev/null and b/articles/vignette_files/figure-html/unnamed-chunk-5-2.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-5-3.png b/articles/vignette_files/figure-html/unnamed-chunk-5-3.png new file mode 100644 index 0000000..aac2550 Binary files /dev/null and b/articles/vignette_files/figure-html/unnamed-chunk-5-3.png differ diff --git a/articles/vignette_files/figure-html/unnamed-chunk-9-1.png b/articles/vignette_files/figure-html/unnamed-chunk-9-1.png index 832a3a1..2c25d64 100644 Binary files a/articles/vignette_files/figure-html/unnamed-chunk-9-1.png and b/articles/vignette_files/figure-html/unnamed-chunk-9-1.png differ diff --git a/authors.html b/authors.html index cac9339..32f2fb2 100644 --- a/authors.html +++ b/authors.html @@ -72,7 +72,7 @@Developers
dsem 1.0.0 -
Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
Value
Value
Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/dsem_control.html b/reference/dsem_control.html index 24c91b9..27bb53f 100644 --- a/reference/dsem_control.html +++ b/reference/dsem_control.html @@ -183,7 +183,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/isle_royale.html b/reference/isle_royale.html index 350e503..98d4f14 100644 --- a/reference/isle_royale.html +++ b/reference/isle_royale.html @@ -68,7 +68,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/list_parameters.html b/reference/list_parameters.html index 4bcd3af..b5fe775 100644 --- a/reference/list_parameters.html +++ b/reference/list_parameters.html @@ -73,7 +73,7 @@Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/reference/parse_path.html b/reference/parse_path.html index 0b4b4a6..70f6575 100644 --- a/reference/parse_path.html +++ b/reference/parse_path.html @@ -73,7 +73,7 @@