risk_detector {gdverse}R Documentation

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)

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.

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).

Author(s)

Wenbo Lv lyu.geosocial@gmail.com

Examples

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


[Package gdverse version 1.0.0 Index]