prep.data: Prepare the data

Description Usage Arguments Author(s)

View source: R/utils.R

Description

Prepare the data

Usage

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

Arguments

data

A data-frame with no missing values containg TP, TN, FP, FN, 'SID' and co-varaiables(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 interecept 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


CopulaDTA documentation built on May 2, 2019, 7:01 a.m.