assign_model: Choose a model to fit

Description Usage Arguments Details Value

View source: R/assign-model.R

Description

assign_model recognizes the model to fit from user input.

Usage

1
assign_model(data_nplcm, model_options, silent = TRUE)

Arguments

data_nplcm

Data for model fitting. Details are

  • Mobs See nplcm function.

  • Y See nplcm function.

  • X See nplcm function.

  • Mname A list of pathogen names. Mname_BrS for BrS only pathogens, and Mname_SSonly for pathogens with only SS measures.

  • taxonomy A list of pathogen taxonomy. The elements include taxo_BrS and taxo_SSonly. It can be used to represent biological classifications, such as bacteria (B) versus virus (V).

model_options

See nplcm function.

silent

Default is TRUE: print assigned model descriptions on screen; otherwise, FALSE.

Details

assign_model will also inspect the actual data supplied and check if the data conform to user's requested model. The following features of data and user inputs are checked against each other:

  1. Available types of measurement quality, i.e., gold-, silver- or bronze-standard or any combinations;

  2. Model for false positive rates: covariate-dependent or not;

  3. Model for etiology: covariate-dependent or not.

Value

A list of information for the selected model:


zhenkewu/nplcm documentation built on May 4, 2019, 10:19 p.m.