Accessing MCMC chain values/real estimates

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

Accessing MCMC chain values/real estimates

Postby FishyAC85 » Wed Oct 29, 2025 4:17 pm

Moved to Software problems subforum. Under same subject
Last edited by FishyAC85 on Thu Oct 30, 2025 8:25 am, edited 1 time in total.
FishyAC85
 
Posts: 5
Joined: Wed Oct 29, 2025 3:25 pm

Re: Accessing MCMC chain values/real estimates

Postby jlaake » Wed Oct 29, 2025 4:26 pm

MARK is composed of a Windows interface and a FORTRAN program MARK.EXE. RMark can only use the FORTRAN code. It is not well known but some aspects of MARK like MCMC are implemented in the Windows interface and are not available to RMark. This post should be in the MARK software problems sub-forum.
jlaake
 
Posts: 1483
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: Accessing MCMC chain values/real estimates

Postby jlaake » Thu Oct 30, 2025 10:09 pm

I emailed Gary and it turns out I was wrong about MCMC. It is implemented in the FORTRAN code but apparently there are several screens of information that need to be completed. No promises but I may look into it. I can see how you might think that RMark would handle it because of the function create.mark.mcmc which I included to help pass MCMC results to coda package.
jlaake
 
Posts: 1483
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: Accessing MCMC chain values/real estimates

Postby FishyAC85 » Fri Oct 31, 2025 8:40 am

Thanks Jeff. Any ideas to access them would be helpful. Dealing with a reviewer that wants to see chain values.
FishyAC85
 
Posts: 5
Joined: Wed Oct 29, 2025 3:25 pm

Re: Accessing MCMC chain values/real estimates

Postby FishyAC85 » Thu Nov 06, 2025 9:55 am

In case anyone else ever wants the chain values, I wanted to update RE the solution.

As a reminder, I was running a multistate model using MCMC estimation, which is not supported directly in RMark.

1) You must run the model in RMark, use export.MARK, and then import to Program MARK. My model was very simple so I had just been making and running it in Program MARK and this was creating an issue when I tried to bring the .BIN file into RMark/coda to read.

2) The output file created when you run your model in Program MARK (.tmp) contains a section that lists the information you need to run the create.mark.mcmc command to open the .BIN file containing the chain values into R. Just search for something like ncovs in the tmp file and you'll find what you need.

The .BIN file opens as a mcmc.list file type but I could change it to a matrix (as.matrix) and then do what I needed to with it.
FishyAC85
 
Posts: 5
Joined: Wed Oct 29, 2025 3:25 pm


Return to RMark

Who is online

Users browsing this forum: No registered users and 0 guests

cron