Skip to contents

Compara o vetor de medias de duas amostras multivariadas (ou contra um vetor de referencia, uma amostra).

Usage

rnp_hotelling(X, Y = NULL, mu0 = NULL, digits = 4L)

Arguments

X

Matriz/data.frame do grupo 1.

Y

Matriz/data.frame do grupo 2 (duas amostras) ou NULL.

mu0

Vetor de referencia (uma amostra). Default zeros.

digits

Inteiro.

Value

tibble com t2, estatistica_f, gl1, gl2, p_valor.

Examples

rnp_hotelling(iris[1:50, 1:4], iris[51:100, 1:4])
#> # A tibble: 1 × 5
#>      t2 estatistica_f   gl1   gl2 p_valor
#>   <dbl>         <dbl> <int> <dbl>   <dbl>
#> 1 2581.          625.     4    95       0