Skip to content

Commit

Permalink
read me
Browse files Browse the repository at this point in the history
  • Loading branch information
Mu Niu authored and Mu Niu committed May 23, 2019
1 parent 64e0b49 commit e01cf5a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@



This code provide the mcmc samples for all movement diffusion parameters and switching parameters.
User can make inference based on the real dataset by uncomment "source('Data_real.r')" in the Setup.r file. Or make inference for the simulation data by uncomment "source('Data_sim.r')" in the Setup.r file.
In order to run the code, first run Main_Inference.r. The initial looping is 50 iterations.

setup.r load group movement reindeer data or simulation data and initialise model parameter and prior
Main_Inference.r the main mcmc loop
RunKF.r run Kalman Filter to calculate the log likelihood
SdeBM.r calculate the diffusion parameter matrix(A in paper) and the initial P for Kalman filter
SolveSdeBM.r calculate the variance matrix (\Xi in paper)

This model can deal with missing values.

0 comments on commit e01cf5a

Please sign in to comment.