Description Usage Arguments Value See Also Examples
View source: R/ggm_compare_estimate.default.R
Visualize the posterior distribution differences.
1 2 |
x |
An object of class |
color |
Character string. The color of the points
(defaults to |
size |
Numeric. The size of the points (defaults to 2). |
width |
Numeric. The width of error bar ends (defaults to |
... |
Currently ignored. |
An object of class ggplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # note: iter = 250 for demonstrative purposes
# data
Y <- bfi
# males and females
Ymale <- subset(Y, gender == 1,
select = -c(gender,
education))[,1:5]
Yfemale <- subset(Y, gender == 2,
select = -c(gender,
education))[,1:5]
# fit model
fit <- ggm_compare_estimate(Ymale, Yfemale,
type = "ordinal",
iter = 250,
prior_sd = 0.25,
progress = FALSE)
plot(summary(fit))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.