You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the wonderful work! I am trying to use your package but was faced with some issues. I installed the package and then run the demo code below:
library(fmcmc)
set.seed(78845)
n <- 1000
X <- rnorm(n)
y <- 3.0 + 2.0*X + rnorm(n, sd = 4)
ll <- function(p, X., y.) {
joint_ll <- dnorm(y. - (p[1] + X.*p[2]), sd = p[3], log = TRUE)
joint_ll <- sum(joint_ll)
if (!is.finite(joint_ll))
return(-Inf)
joint_ll
}
set.seed(1215)
ans <- MCMC(
ll,
initial = c(0, 0, sd(y)),
nsteps = 5000,
X. = X,
y. = y
)
However, it gave me an error said "Error in ...names() : could not find function "...names"". I am using R 4.0.2 with RStudio to run the code. Can you help me with this? Thank you very much.
The text was updated successfully, but these errors were encountered:
That happens because the function ...names() was introduced in R 4.1.0. I've changed the code so that it avoids using that function. Try it again and let me know.
Hello developers,
Thank you for the wonderful work! I am trying to use your package but was faced with some issues. I installed the package and then run the demo code below:
However, it gave me an error said "Error in ...names() : could not find function "...names"". I am using R 4.0.2 with RStudio to run the code. Can you help me with this? Thank you very much.
The text was updated successfully, but these errors were encountered: