normalized_domain_plot {viraldomain}R Documentation

Create a Normalized Domain Plot

Description

This function generates a domain plot for a normalized model based on PCA distances of the provided data.

Usage

normalized_domain_plot(featured_col, train_data, test_data, treshold_value)

Arguments

featured_col

The name of the featured column.

train_data

A data frame containing the training data.

test_data

A data frame containing the test data.

treshold_value

The threshold value for the domain plot.

Value

A domain plot visualizing the distances of imputed values.

Examples

set.seed(123)
library(dplyr)
# Specifying featured column
featured_col = "cd_2022"
train_data = viral |>
  dplyr::select("cd_2022", "vl_2022")
test_data = sero
treshold_value = 0.99
# Call the function

[Package viraldomain version 0.0.6 Index]