unsup_get_pval_group1: Evaluate p-value of u compared to subject 1's sample

View source: R/unsup_get_pval_group1.R

unsup_get_pval_group1R Documentation

Evaluate p-value of u compared to subject 1's sample

Description

Helper function for method that predicts a new observation on subject 1 using only data from subject 1. Create augmented sample containing subject 1's observations and u. As nonconformity scores, compute the absolute difference between each observation in augmented sample and the augmented mean. The p-value is the proportion of observations in the augmented sample with nonconformity score >= u's nonconformity score.

Usage

unsup_get_pval_group1(u, Y_1)

Arguments

u

Hypothetical new observation from subject 1

Y_1

Vector of observations from subject 1

Value

p-value of u relative to subject 1's sample


RobinMDunn/ConformalTwoLayer documentation built on March 22, 2022, 6:38 p.m.