estims_boxplot {EstimDiagnostics} | R Documentation |
Plot boxplots of estimators for different sample sizes.
estims_boxplot(data, sep = FALSE)
data |
data frame returned by |
sep |
indicates whether all plots will be stacked together or returned as elements of a list |
ggplot2 object
Nmc=400
s<-seq(from = 1, to = 10, by = 2)*1e3
Inference<-function(s){
rrr<-rnorm(n=s)
list(Mn=mean(rrr), Sd=sd(rrr))
}
data <- Estim_diagnost(Nmc, s, Inference)
estims_boxplot(data)
estims_boxplot(data, sep=TRUE)