Skip to content

Commit 1852724

Browse files
sbfnkclaude
andcommitted
Fix variable names in posterior draws vignette section
Use actual parameter names (latent.damp_AR.1., latent.damp_AR.2.) from the fitted model draws. Also add latent.std to the summary. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 22d43b3 commit 1852724

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎vignettes/mishra-case-study.Rmd‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ draws <- as_draws_df(results)
218218
head(draws)
219219
220220
# Summarise specific parameters
221-
subset_draws(draws, variable = c("ar_damp.1.", "ar_damp.2.")) |>
221+
subset_draws(draws,
222+
variable = c("latent.damp_AR.1.", "latent.damp_AR.2.", "latent.std")
223+
) |>
222224
summarise_draws()
223225
```
224226

@@ -229,7 +231,7 @@ library(bayesplot)
229231
230232
# Trace plots for AR damping coefficients
231233
mcmc_trace(as_draws_array(results),
232-
pars = c("ar_damp.1.", "ar_damp.2."))
234+
pars = c("latent.damp_AR.1.", "latent.damp_AR.2."))
233235
```
234236

235237
### Visualization

0 commit comments

Comments
 (0)