pistar.bvn: The Mixture Index of Fit for Bivariate Normal Independence

View source: R/pistar.bvn.R

pistar.bvnR Documentation

The Mixture Index of Fit for Bivariate Normal Independence

Description

pistar.bvn is used to estimate the pi* mixture index of fit for independence in a bivariate normal distribution using the relationship between pi* and Pearson correlation coefficient.

Usage

	pistar.bvn(x, y, conf = 0.95, na.action, alt = "two.sided", verbose = TRUE)

Arguments

x

a numeric vector containing the first variable.

y

a numeric vector containing the second variable.

conf

confidence level.

na.action

passed to cor.test.

alt

alternative hypothesis, determines the shape of the confidence interval; passed to cor.test.

verbose

logical: print during estimation?

Value

Object of class "Pistar", and "PistarBVN" with the following slots:

call

the matched call.

pistar

a list of estimated values of the mixture index of fit:

est

for the supplied data.

jack

vector of values from jackknife.

pred

not yet implemented.

data

a data.frame with the supplied data.

param

not yet implemented.

interval

confidence interval for pi*.

conf

confidence level.

alt

the supplied alternative hypothesis.

Author(s)

Juraj Medzihorsky

References

Rudas, T., Clogg, C. C., Lindsay, B. G. (1994) A New Index of Fit Based on Mixture Methods for the Analysis of Contingency Tables. Journal of the Royal Statistical Society. Series B (Methodological), Vol. 56, No. 4, 623-639.

See Also

cor.test pearson2pistar

Examples

	#	simlate data
	set.seed(1989)
	n <- 1e2
	a <- rnorm(n)
	b <- rnorm(n)

	#	find pi*
	o <- pistar.bvn(x=a, y=b)

	o


jmedzihorsky/pistar documentation built on June 4, 2022, 9:58 a.m.