varHistPlot               package:plw               R Documentation

_V_a_r_i_a_n_c_e _h_i_s_t_o_g_r_a_m _a_n_d _d_e_n_s_i_t_y

_D_e_s_c_r_i_p_t_i_o_n:

     Will produce a histogram of observed variance estimators (logged)
     together with the fitted density.

_U_s_a_g_e:

     varHistPlot(model,main="Histogram variance estimators",
                histCol=8,densityCol=2,drawLegend=TRUE)

_A_r_g_u_m_e_n_t_s:

   model: On object obtained from the function plw or lmw.

    main: Main title of plot.

 histCol: Color for histogram bars.

densityCol: Color for density function.

drawLegend: To draw a legend or not.

_A_u_t_h_o_r(_s):

     Magnus Astrand

_S_e_e _A_l_s_o:

     plw, lmw

_E_x_a_m_p_l_e_s:

     # ------------------------------------------
     # Example using the result of the analysis of
     # the 6 arrays in the AffySpikeU95Subset data set

     # Loading the data
     data(AffySpikeU95Subset)

     # Defining design and contrast matrix
     group<-factor(rep(1:2,each=3))
     design<-model.matrix(~group-1)
     contrast<-matrix(c(1,-1),1,2)

     # Analyzing using plw
     model1<-plw(AffySpikeU95Subset,design=design,contrast=contrast,
                 epsilon=0.01)

     ## Look at fitted vs observed density for log(s2)
     varHistPlot(model1)

