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
library(bbmle)
y <- rnorm(100)
d <- data.frame(y)
mlefun <- function(fixed=NULL) {
m <- mle2(y ~ dnorm(mean=mu, sd=sigma),
data=d,
fixed=fixed,
start=list(mu=0, sigma=1))
confint(m)
}
## this breaks
mlefun()
## need to define 'fixed' in the global environment
fixed <- NULL
## this runs now
mlefun()
The text was updated successfully, but these errors were encountered:
parksw3
changed the title
environment issues
confint() environment issues
Jul 19, 2019
The text was updated successfully, but these errors were encountered: