Editing
Software Plugins and Codes
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===OBSOLETE: JAGS run script=== This is not required when running JAGS from within R, which seems to be the best way to run JAGS. Here is the script I used to run JAGS, fnbmd10.jags. Of course, you could enter all these commands interactively into JAGS as well. You probably want to customize this. For example, I just guessed at the number of iterations. There are also several output options. Probably you want to use the coda command to save the monitor values in files that can be read by the coda package of R, and then do some sort of statistical analysis on the convergence. <source lang=text> # Read in the model and the data model in findcp.model data in fnbmd10.R # Required stuff compile initialize # Do some iterations # (The adaptive part of the iterating needs to be done before monitors can be set) update 500 # Now set some monitors to track parameters over iterations monitor b.cutoff, thin(50) monitor b.intercept, thin(50) monitor b.slope, thin(50) # Do lots of iterations update 10000 # Save parameters and monitors. # There are other kinds of outputs and files you can write; refer to the # JAGS documentation parameters to parameters.out monitors to monitors.out # Bye exit </source> [[Image:Redirect.jpg|15px]] [[#top|''Return to Contents'']] or [[Main_Page|''Return to Main Page'']]
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information