Dear Friends,

I am running a simple code for rinla.  The INLA package is installed 
successfully on Rstudio.
But when I run inla (y~x,......) function, I get the following error: could not 
find function "inla"
Did anybody have the same problem before?

I would appreciate it if any information is shared.

Regards,

install.packages("INLA", repos = "https://inla.r-inla-download.org/R/stable";, 
dep = TRUE)

library(INLA)
N = 100      #500, 5000, 25000, 100000
x = rnorm(N, mean=6, sd=2)
y = rnorm(N, mean=x,sd=1)
data = list(x=x, y=y, N=N)
# The likelihood family is �gaussian�
model<- inla(y ~ x, family = c("gaussian"), data = data, 
control.predictor=list(link=1))
Summary <- (model)

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to