View source: R/clean-perch-data.R
make_meas_object | R Documentation |
Wrap the information about a particular type of measurement, e.g., NPPCR. NB: add example! copy some from the vignette file.
make_meas_object(patho, specimen, test, quality, cause_list, sep_char = "_")
patho |
A vector of pathogen names |
specimen |
Specimen name |
test |
Test name |
quality |
Quality category: any of "BrS", "SS" or "GS". |
cause_list |
The vector of potential latent status |
sep_char |
a character string that separate the pathogen names and the
specimen-test pair; Default to |
A list with measurement information
quality
same as argument
patho
same as argument
name_in_data
the names used in the raw data to locate these measurements
template
a mapping from patho
to cause_list
.
NROW = length(cause_list)+1
;
NCOL = length(patho)
. This value is crucial in model fitting to determine
which measurements are informative of a particular category of latent status.
specimen
same as argument
test
same as argument
nm_spec_test
paste specimen
and test
together
make_template()
make_meas_object(
patho = c("A","B","C","D","E","F"),
specimen = "MBS",
test = "1",
quality = "BrS",
cause_list = c("A","B","C","D","E"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.