fit <- stan_polr (FWS1 ~ Ethnic1 + Fam1 + Eco1+ Health1 + Safety1 + Community1 + Religios1 + Housing1, data = as.data.frame (BayesOrdinal1), method = “logistic”, prior = lkj(regularization, scale, df), prior_counts = dirichlet(1), init_r = 0.1, seed = 12345, algorithm = “sampling”) #### Covariance matrices # decov(regularization, concentration, shape, scale)` # lkj(regularization, scale, df)`
In rstanam package we have many options of choosing prior. One of theses options is covariance matrix.
Could any one guide me how to apply this prior in the model, please?
How to used covariance matrix as a prior?
EDIT(@maxbiostat): escaped code.