Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

template_huiwalter

Create a Hui-Walter model based on paired test data for an arbitrary number of tests and populations


Description

Create a Hui-Walter model based on paired test data for an arbitrary number of tests and populations

Usage

template_huiwalter(
  testdata,
  outfile = "huiwalter_model.txt",
  covariance = FALSE,
  se_priors = "dbeta(1,1)",
  sp_priors = "dbeta(1,1)"
)

Arguments

testdata

the input paired test data, where each column name corresponds to a test result - except possibly "ID" which is ignored, and "Population" indicating a population identifier for that row. Each row must represent test results from the same individual either as logical or a factor with two levels (and where the first level indicates a negative test result). Data may be missing at random (except for Population).

outfile

the name of the text file to save the model representation

covariance

should covariance terms be activated or omitted?

se_priors

the priors to use for sensitivity parameters (can be adjusted in the model once it is generated)

sp_priors

the priors to use for specificity parameters (can be adjusted in the model once it is generated)


runjags

Interface Utilities, Model Templates, Parallel Computing Methods and Additional Distributions for MCMC Models in JAGS

v2.2.0-2
GPL-2
Authors
Matthew Denwood [aut, cre], Martyn Plummer [cph] (Copyright holder of the code in src/distributions/DPar1.*, configure.ac, R/rjags_functions.R, and original copyright holder of some modified code where indicated)
Initial release
2021-03-01

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.