Description Usage Arguments Value Examples
View source: R/estim_diagnostics.R
Plot QQ-plots of estimators' empirical distributions for different sample sizes.
1 | estims_qqplot(data, sep = FALSE, ...)
|
data |
data frame returned by |
sep |
indicates whether all plots will be stacked together or returned as elements of a list |
... |
parameters to pass to stat_qq function |
ggplot2 object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(ggplot2)
Nmc=500
s<-c(1e3,4e3)
Inference<-function(s){
rrr<-rnorm(n=s)
list(Mn=mean(rrr), Sd=sd(rrr))
}
data <- Estim_diagnost(Nmc, s, Inference)
lisst <- estims_qqplot(data, sep=TRUE)
lisst[2][[1]] + geom_abline(intercept = 1)
pl_joint<-estims_qqplot(data)
pl_joint + geom_abline(slope=1)
pl_joint<-estims_qqplot(data, distribution = stats::qt, dparams = list(df=3, ncp=0.1))
pl_joint + geom_abline(slope=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.