Learn R Programming

CompR (version 1.0)

Piplot: Graphical representation of the Bradley's scores

Description

Gives a graphical representation of the Bradley's scores.

Usage

Piplot(Pi, SigmaPi = NULL, level=0.05, main = NULL, ylab = "Bradley's scores", xlab = "Item", labelprod = NULL)

Arguments

Pi
vector of Bradley's scores
SigmaPi
vector of Bradley's scores standard deviation given by the user. (default SigmaPi=NULL)
level
level to use for the confidence intervals. (default level=0.05)
main
Title of the plot.(default main=NULL)
ylab
value for ylab. (default ylab= Bradley's scores)
xlab
value for xlab. (default xlab=Item)
labelprod
label vector of the Item. (default labelprod=NULL)

Value

A graphical representation of bradley's scores.

Details

The representation is based on plot(x) function, with Item on x axis, and Bradley's scores on y axis. If SigmaPi is provided by user, a 1-level (default 95%) confidence interval is drawn for each Item.

Examples

Run this code
  data(Cocktail_Cum)
  res<-C_piBTL(Cocktail_Cum,Constraint=0,eps1=0.0001,Pi=NULL,TestPi=TRUE)
  Res_Pi<-res$Pi
  Res_Varcov<-res$VarcovPi
  Res_Sigma<-sqrt(diag(Res_Varcov))
  Piplot(Res_Pi, SigmaPi = Res_Sigma, level=0.01, main = NULL, ylab = "Bradley's scores",
  xlab = "Item", labelprod = NULL)
  
  

Run the code above in your browser using DataLab