plot.alpha {coefficientalpha}R Documentation

Alpha/Omega related plot

Description

Generate plot related to alpha or omega. Three plot can be generated. (1) The weight plot will plot the weight associated with alpha calculation. (2) Profile plot will plot the cases with smallest weights and the average value. (3) The diagnostic plot plots the alpha according to different values of the tuning parameter.

Usage

## S3 method for class 'alpha'
plot(x, type="weight", profile=5, interval=0.01,
center=TRUE, scale=FALSE, w1=FALSE, numbered=FALSE, pos="topright",...)
## S3 method for class 'omega'
plot(x, type="weight", profile=5, interval=0.01,
center=TRUE, scale=FALSE, w1=FALSE, numbered=FALSE, pos="topright",...)

Arguments

x

Results from the function alpha or omega.

type

Three types of plots can be generated. type="weight" generates the plot of weight of each case. type="profile" generates a profile plot for the smallest weight. type="weight" generates the diagnostic plot for varphi with an interval of .01.

profile

Number of cases used on the profile plot. At most 10.

interval

The interval used in the diagnostic plot. The default is 0.01.

center

Whether to center the data in the profile plot.

scale

Whether to scale the data using variance parameters in the profile plot.

w1

Whether to plot the weight for means

numbered

Whether to number the profile plot

pos

Position of legend. If pos=NULL, no legend is plotted.

...

Options can be passed to the plot function.

Author(s)

Zhiyong Zhang and Ke-Hai Yuan

References

Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.

Examples

data(example)

res<-alpha(example, varphi=.01)
## diagnostic plot
plot(res, type='d')

## alpha with varphi=.01 & standard error
res<-alpha(example, varphi=.01, se=TRUE)
## confidence interval
summary(res)

## weight plot
plot(res)
# or
plot(res, type='w')

## profile plot
plot(res, type='p')

[Package coefficientalpha version 0.7.2 Index]