Learn R Programming

morpheus (version 1.0-4)

plotCoefs: plotCoefs

Description

Draw a graph of (averaged) coefficients estimations with their standard, deviations ordered by mean values. Note that the drawing does not correspond to a function; it is just a convenient way to visualize the estimated parameters.

Usage

plotCoefs(mr, params, ...)

Arguments

mr

List of parameters matrices

params

True value of the parameters matrix

...

Additional graphical parameters

Examples

Run this code
if (FALSE) {
beta <- matrix(c(1,-2,3,1),ncol=2)
mr <- multiRun(...) #see bootstrap example in ?multiRun
                    #mr[[i]] is a list of estimated parameters matrices
mu <- normalize(beta)
for (i in 1:2)
  mr[[i]] <- alignMatrices(res[[i]], ref=mu, ls_mode="exact")
params <- rbind( c(.5,.5), beta, c(0,0) ) #p, beta, b stacked in a matrix
plotCoefs(mr[[1]], params)}

Run the code above in your browser using DataLab