nimble
nimble copied to clipboard
partial matching warning if option warnPartialMatchDollar is TRUE
In argList$model : partial match of 'model' to 'modelValues'
Note this only occurs if the option warnPartialMatchDollar is TRUE
simple repress
options(warnPartialMatchDollar = TRUE)
library(nimble)
constants <- list(x = 1:10, nobs = 10)
data <- data.frame(y = 2:12)
code <- nimble::nimbleCode({
b ~ dunif(1, 10)
for(i in 1:nobs) {
ey[i] <- x[i] + b
y[i] ~ dnorm(ey[i], sd = 2)
}
})
fit <- nimbleMCMC(code = code,
constants = constants,
data = data)