Description Usage Arguments Value Author(s)
View source: R/sample_theta_y.R
sample_theta_y
uses the adaptive Metropolis algorithm of Haario et al. 2001, https://projecteuclid.org/euclid.bj/1080222083, to sample the vector theta_y for the cumulative probit model.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
Vector of indepenent variable observations |
Y |
Matrix of dependent variable observations |
hp |
Hyperparameters |
numSamp |
Number of samples |
burnIn |
Number of burn-in samples |
verbose |
Whether to print out information as the run proceeds [optional] |
start |
Starting value of theta_y_list for sampling [optional] |
fileName |
File name for saving [optional] |
savePeriod |
Period (of samples) for saving [optiona; default 1000] |
known |
Known values, a list with the field theta_y, which is also a list [optional] |
varNames |
Variable names for saving to file [optional] |
theta_y as a list
Michael Holton Price <MichaelHoltonPrice@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.