quant2ecdf(sim, ...)
## S3 method for class 'default':
quant2ecdf(sim, weights=NULL, byrow=TRUE,
quantiles.desired= c(0.05, 0.5, 0.95), plot=TRUE, obs=NULL,
quantiles.labels= c("Q5", "Q50", "Q95"), main=NULL,
ylab="Probability", col="blue", leg.cex=1.2, leg.pos="bottomright",
cex.axis=1.2, cex.main=1.2, cex.lab=1.2, verbose=TRUE, ...)
## S3 method for class 'matrix':
quant2ecdf(sim, weights=NULL, byrow=TRUE,
quantiles.desired= c(0.05, 0.5, 0.95), plot=TRUE, obs=NULL,
quantiles.labels= c("Q5", "Q50", "Q95"), main=NULL,
ylab="Probability", col="blue", leg.cex=1.2, leg.pos="bottomright",
cex.axis=1.2, cex.main=1.2, cex.lab=1.2, verbose=TRUE, ...)
## S3 method for class 'data.frame':
quant2ecdf(sim, weights=NULL, byrow=TRUE,
quantiles.desired= c(0.05, 0.5, 0.95), plot=TRUE, obs=NULL,
quantiles.labels= c("Q5", "Q50", "Q95"), main=NULL,
ylab="Probability", col="blue", leg.cex=1.2, leg.pos="bottomright",
cex.axis=1.2, cex.main=1.2, cex.lab=1.2, verbose=TRUE, ...)weights argument or specifying NULL or a zero-length vector will result in the usual un-weighted estimatesx
When the simulated equivalents are stored in columns, byrow must be TRUE
When the simulated equivalents are stored in roplot=TRUE
Numeric or zoo object with observed values, which are used in the output plotplot=TRUE
character vector, names to quantiles.desired. Default value is c("Q5", "Q50", "Q95")plot=TRUE
title for the plotplot=TRUE
title for the y axis. See plotplot=TRUE
specification for the default plotting colour. See parplot=TRUE
character expansion factor *relative* to current 'par("cex")'. Used for text, and provides the default for 'pt.cex' and 'title.cex' Default value = 1.2plot=TRUE
keyword to be used to position the legend. See legendplot=TRUE
numeric, magnification to be used for the axis annotation relative to 'cex'. See parplot=TRUE
numeric, representing the magnification to be used for main titles relative to the current setting of cexplot=TRUE
numeric, representing the magnification to be used for x and y labels relative to the current setting of 'cex'. See parplot function or from other methodsx and ecdf correspond to unique sorted values of sim. If the first CDF estimate is greater than zero, a point (min(sim),0) is placed at the beginning of the estimateswtd.Ecdf, params2ecdf# random matrix with 100 simulated values (in columns) corresponding to 10
# different behavioural parameter sets
x <- matrix(rnorm(1000), ncol=10, nrow=100)
# empirical CDFs for the quantiles 0.05, 0.5 and 0.95, with equal weight for
# each parameter set
quant2ecdf(sim=x, weights=1:10, byrow=FALSE)Run the code above in your browser using DataLab