pmwg-package | R Documentation |
The pmwg package provides a general purpose implementation of the sampling techniques outlined in Gunawan et al. (2020) \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jmp.2020.102368")}. The user of this package is required to provide their own log likelihood function, but given this the functions provided can estimate model parameters, the full covariance matrix and subject random effects in a hierarchical Bayesian way.
The documentation found at contains background information and motivation for the approach used in this package and several detailed examples of the package in action. It also includes a list of common problems and associated troubleshooting steps.
The user is expected to provide a data source in a format that is compatible with R data.frame methods. This data must have at least one column named ‘subject' that has a unique identifier for each subject’s data.
Additionally the user should provide a function that when given a set of parameter estimates and the data for a single subject return the log of the likelihood of that data given the parameter estimates.
The final piece of required information is a list of the names of each parameter that should be estimated. There is also the capability to provide priors on the model parameters, start points for the model parameters and covariance matrix as well as options to fine tune the sampling process
Maintainer: Gavin Cooper gavin@gavincooper.net (Package creator and maintainer) [translator]
Authors:
Reilly Innes Reilly.Innes@uon.edu.au
Caroline Kuhne caroline.kuhne@newcastle.edu.au
Jon-Paul Cavallaro jon-paul.cavallaro@uon.edu.au
David Gunawan dgunawan@uow.edu.au (Author of original MATLAB code)
Guy Hawkins guy.hawkins@newcastle.edu.au
Scott Brown scott.brown@newcastle.edu.au (Original translation from MATLAB to R) [translator]
Niek Stevenson niek.stevenson@gmail.com
Gunawan, D., Hawkins, G. E., Tran, M. N., Kohn, R., & Brown, S. D. (2020). New estimation approaches for the hierarchical Linear Ballistic Accumulator model. Journal of Mathematical Psychology, 96, 102368.
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.