Skip to content

Commit

Permalink
Agregar modelo correlacionado
Browse files Browse the repository at this point in the history
  • Loading branch information
felipegonzalez committed Apr 17, 2024
1 parent d91f976 commit b6cbf51
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions notas/09-modelos-jerarquicos.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -771,3 +771,21 @@ Nótese que el caso de una dimensión, para centrar multiplicábamos por la
desviación estándar. El análogo en el caso multivariado es el factor de Cholesky
de la covarianza, que es una especie de "raíz" de la covarianza.


```{r}
mod_5_bangladesh <- cmdstan_model("./src/bangladesh-5.stan")
print(mod_5_bangladesh)
```


```{r}
ajuste_5_bangladesh <- mod_5_bangladesh$sample(data = datos_lst,
refresh = 1000, init = 0.1, step_size = 0.1, parallel_chains = 4, seed = 9394)
```

```{r}
ajuste_5_bangladesh$summary(c("beta_bar", "sigma", "Omega")) |>
knitr::kable(digits = 2)
```
Este resultado es superior al anterior.

0 comments on commit b6cbf51

Please sign in to comment.