Learn R Programming

gdverse (version 1.3-1)

risk_detector: risk detector

Description

Determine whether there is a significant difference between the attribute means of two sub regions.

Usage

risk_detector(y, x, alpha = 0.95)

Value

A tibble. contains different combinations of covariate X level and student t-test statistics, degrees of freedom, p-values, and whether has risk (Yes or No).

Arguments

y

Variable Y, continuous numeric vector.

x

Covariate X, factor, character or discrete numeric.

alpha

(optional) Confidence level of the interval,default is 0.95.

Examples

Run this code
risk_detector(y = 1:7,
              x = c('x',rep('y',3),rep('z',3)))

Run the code above in your browser using DataLab