diagnosis
is a generic function. For details, see
diagnosis.MT
, diagnosis.MTA
,
diagnosis.RT
or general_diagnosis.MT
.
diagnosis(unit_space, newdata, threshold, includes_transformed_newdata)
Object generated as a unit space.
Matrix with n rows (samples) and p columns (variables). The data are used to calculate the desired distances from the unit space. All data should be continuous values and should not have missing values.
Numeric specifying the threshold value to classify each
sample into positive (TRUE
) or negative
(FALSE
).
If TRUE
, then the transformed data
for newdata
are included in a
return object.
A list containing the following components is returned.
Vector with length n. Distances from the unit space to each sample.
Vector with length n. Logical values indicating the
distance of each sample is less than or equal to the
threhold value (TRUE
) or not (FALSE
).
Numeric value to classify the sample into positive or negative.
Object passed by unit_space
.
The number of samples for newdata
.
The number of variables after the data transformation.
If includes_transformed_newdata
is TRUE
, then the
transformed data for newdata
are included.