prep.data: Prepare the data

View source: R/utils.R

prep.dataR Documentation

Prepare the data

Description

Prepare the data

Usage

prep.data(data, SID, formula.se, formula.sp, formula.omega)

Arguments

data

A data-frame with no missing values containing TP, TN, FP, FN, 'SID' and co-variables(if necessary).

SID

A string indicating the name of the column with the study ID.

formula.se

An optional object of class "formula": A symbolic description of a linear model to be fitted to mean E(x) of sensitivity in the logit scale. the default (when no covariates are included) symbolic description is SID ~ 1 corresponds to the model formula E(x) = mu = exp(a)/(1 + exp(a)) where a is the intercept. When the covariates are categorical and the relative measures are needed it is important to remove the intercept from the model to obtain meaningful parameters. EG for a covariate 'Test' with two levels(A and B) and relative sensitivity of B versus A is needed, then the correct formula is SID ~ Test - 1. See **** . Further information on interpretation of parameters in logistic regression see ***

formula.sp

An optional object of class "formula": A symbolic description of a linear model to be fitted to specificity data. When no covariates are included, the formula is not necessary. By default the covariate information for sensitivity is used.

formula.omega

An optional object of class "formula": A symbolic description of a linear model to be fitted to the copula function. When no covariates are included, the formula is not necessary. By default the covariate information for sensitivity is used.

Author(s)

Victoria N Nyaga


VNyaga/CopulaDTA documentation built on Feb. 23, 2023, 12:39 p.m.