-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|