makeData | R Documentation |
Transform the format of the input dataset into internal use format. This function is used within the main function meta4diag()
and can also be used as a separate function.
makeData(data = NULL, model.type = 1, modality = NULL, covariates = NULL)
data |
A data frame contains at least 4 columns specifying the number of True Positive( |
model.type |
A numerical value specifying the model type, options are 1(default), 2, 3 and 4. |
modality |
A string specifying the modality variable, which is a categorical variable, such as test threshold. Default value is NULL. See also |
covariates |
A vector specifying the continuous covariates variables, such as disease prevalence or average individual patients status of each study. Default value is NULL. See also |
A constructed list with components:
internaldata |
a data frame used as internal data in INLA. |
originaldata |
a data frame which is equal to the provided input data. |
covariates.setting |
a vector specified the setting of covariates, if |
modality.setting |
a vector specified the setting of modality, if |
model.type |
a value specified the model type. |
Jingyi Guo and Andrea Riebler
## Not run:
data(Catheter)
a = makeData(data=Catheter,model.type=1,modality="type")
b = makeData(data=Catheter,model.type=1,modality=2)
c = makeData(data=Catheter,model.type=1,covariates="prevalence")
d = makeData(data=Catheter,model.type=1,covariates=3)
e = makeData(data=Catheter,model.type=1,modality="type",covariates="prevalence")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.