Learn R Programming

viraldomain (version 0.0.6)

normalized_domain_plot: 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)

Value

A domain plot visualizing the distances of imputed values.

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.

Examples

Run this code
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

Run the code above in your browser using DataLab