plot.alpha | R Documentation |
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.
## 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",...)
x |
Results from the function |
type |
Three types of plots can be generated. |
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 |
Zhiyong Zhang and Ke-Hai Yuan
Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.