Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

<~ operator, target="jags" #90

Open
ecmerkle opened this issue Oct 17, 2024 · 0 comments
Open

<~ operator, target="jags" #90

ecmerkle opened this issue Oct 17, 2024 · 0 comments

Comments

@ecmerkle
Copy link
Owner

For target="jags", the <~ operator is not working correctly. Example below.

n <- 200
x1 <- rnorm(n,0,1)
x2 <- x1 + rnorm(n, 0, 1)
beta1 <- 0.5
beta2 <- 1
c <- beta1*x1 + beta2*x2
y <- rnorm(n, c, 0.1)

mJ <- bsem('y ~ c
           c <~ x1 + 1*x2',
           data = dat,
           sample = 1000,
           target = 'jags')
summary(mJ)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant