Code Monkey home page Code Monkey logo

inlamcmc_examples's People

Contributors

becarioprecario avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

inlamcmc_examples's Issues

change the value of zero.variance in spatial error model case lead INLA crashes

I'm trying to simulate a spatially autocorrelated random data, and I draw both
co-ordinates of 40 points,by using Voronoi tessellation to construct units and get rook type spatial weight matrix w(row-standardisation ).
#generating data N=40 set.seed(1) beta=c(1,3) rho=0.7 alpha=1 x1=rnorm(N,40,2) x2=rnorm(N,36,5) Irhow.t=Diagonal(nrow(w))-rho*w Irhow2.t=crossprod(Irhow.t) sigma=1 sigma2=sigma*solve(Irhow2.t) epsilon=mvrnorm(1,rep(0,N),sigma2) y=solve(Irhow.t)%*%(x1*beta[1]+x2*beta[2]+alpha)+epsilon

I don't konw what's the zero.variance use for ,so I try to change its value,the simulation either crashes (INLA crashes in early iteration xxx)or its result not working well,even I start point that very close to true values.

Thank you for any help in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.