read.manually.introduced {Comp2ROC}R Documentation

Read data manually introduced

Description

This function allows to read the testing data.

Usage

read.manually.introduced(dat, modality1, testdirection1, modality2,
testdirection2, status1, related = TRUE, status2 = NULL)

Arguments

dat

Dataframe of data to anlyse

modality1

Name of the column of dataframe that represents the first modality

testdirection1

Indicates the direction of the test for modality 1. If TRUE means that larger test results represent more positive test

modality2

Name of the column of dataframe that represents the second modality

testdirection2

Indicates the direction of the test for modality 2. If TRUE means that larger test results represent more positive test

status1

Name of the column of dataframe that represents the Status 1

related

Boolean parameter that represents if the two modalities are related or not

status2

Name of the column of dataframe that represents the Status 2

Details

By default, the related parameter is set to TRUE. In this case the status2 is not necessary (by default set to (NULL), because in related modalities the status is the same. Otherwise, if related is set to FALSE, its necessary to indicate the name of status2 column. In the data must be listed first all values of the distribution of negative cases (0), followed by the positive ones (1).

Value

This functions returns a list with the following data:

sim1.ind

Vector with the data for Curve 1

sim2.ind

Vector with the data for Curve 2

sim1.sta

Vector with the status for Curve 1

sim2.sta

Vector with the status for Curve 2

Examples


data(zhang)
moda1 = "modality1" 
moda2 = "modality2"
data = read.manually.introduced(zhang, moda1, TRUE, moda2, TRUE, "status", TRUE)


[Package Comp2ROC version 1.1.4 Index]