Learn R Programming

⚠️There's a newer version (0.9.99-9) of this package.Take me there.

bayescount (version 0.8.2)

Bayesian analysis of count distributions with JAGS

Description

A set of functions to apply a (zero-inflated) gamma Poisson (equivalent to a negative binomial), (zero-inflated) simple or independant Poisson, (zero-inflated) lognormal Poisson or (zero-inflated) Weibull Poisson model to a set of count data using JAGS (Just Another Gibbs Sampler). Returns information on the possible values for mean count, variance and zero inflation present in count data such as faecal egg count data. Checks for convergence using the Gelman-Rubin statistic. Likelihoods for the above distributions can also be calculated, and a crude maximum likelihood function is included. Also allows any user specified model to be run in JAGS from within R, returning the MCMC output as R objects. Just Another Gibbs Sampler (JAGS) must be installed. *THIS SOFTWARE IS INTENDED FOR EDUCATIONAL PURPOSES ONLY AND SHOULD NOT BE RELIED UPON FOR REAL WORLD APPLICATIONS*

Copy Link

Version

Install

install.packages('bayescount')

Monthly Downloads

339

Version

0.8.2

License

GPL

Maintainer

Matthew Denwood

Last Published

December 8th, 2023

Functions in bayescount (0.8.2)

lnormal.params

CALCULATE THE LOG-NORMAL MEAN AND STANDARD DEVIATION USING THE NORMAL MEAN AND STANDARD DEVIATION
normal.params

CALCULATE THE NORMAL MEAN AND STANDARD DEVIATION USING THE LOG-NORMAL MEAN AND STANDARD DEVIATION
maximise.likelihood

CALCULATE THE MAXIMUM LIKELIHOOD PARAMETERS OF A CONTINUOUS OR COUNT DISTRIBUTION
run.jags

RUN A USER SPECIFIED MODEL IN JAGS FROM WITHIN R
assess.variance

ASSESS CERTIAINTY IN VARIANCE ESTIMATE FOR LP/GP/WP MODEL
run.model

ANALYSE COUNT DATA USING JAGS
bayescount.single

ANALYSE COUNT DATA USING JAGS
ask

OBTAIN INPUT FROM USER WITH ERROR HANDLING
testjags

ANALYSE THE SYSTEM TO CHECK THAT JAGS IS INSTALLED
findjags

ATTEMPT TO LOCATE A JAGS INSTALL
fecrt

PERFORM AN ANALYSIS OF FAECAL EGG COUNT REDUCTION TEST DATA USING MCMC TO GIVE A PROBABILITY DISTRIBUTION OF VALUES FOR THE MEAN EGG COUNT REDUCTION
timestring

CALCULATE THE ELAPSED TIME IN SENSIBLE UNITS
dump.format

PRODUCE A CHARACTER STRING IN THE R DUMP FORMAT TO BE USED WITH JAGS
bayescount

ANALYSE COUNT DATA USING JAGS
likelihood

CALCULATE THE (LOG) LIKELIHOOD OF OBTAINING DATA FROM A DISTRIBUTION
new_unique

CREATE A UNIQUE FILENAME