chi_sqQ: Values for Chi-Square Plot

Description Usage Arguments Value Examples

View source: R/chi_sqQ.R

Description

This function is for use in my shiny_MVN app to calculate the values for the chi-square plot for assessing normality

Usage

1

Arguments

df

a bivariate data.frame

Value

j the observation number, ordered by the squared distance

d_jsq the squared distance

q_j the chi-square quantiles from the chi-square distribution

Examples

1
2
3
4
x1 <- c(108.28, 152.36, 95.04, 65.45, 62.97, 263.99, 265.19, 285.06, 92.01, 165.68)
x2 <- c(17.05, 16.59, 10.91, 14.14, 9.52, 25.33, 18.54, 15.73, 8.10, 11.13)
data <- data.frame(cbind(x1, x2))
chi_sqQ(data)

leahpom/MATH5793POMERANTZ documentation built on May 10, 2021, 9:52 a.m.