p.as.plot {ConvergenceConcepts} | R Documentation |
Interactive plot for convergence in probability and almost surely
Description
This function enables one to draw the interactive plots used to study convergence in probability and almost surely.
Usage
p.as.plot(data,critp,critas,epsilon=0.05,nb.sp=10,mode="p")
Arguments
data |
matrix containing the sample paths of Xn-X values. |
critp |
vector containing the criterion values for convergence in probability. |
critas |
vector containing the criterion values for convergence almost surely. |
epsilon |
a numeric value giving the interval endpoint. |
nb.sp |
number of sample paths to be drawn on the left plot. |
mode |
a character string specifying the mode of convergence to investigate, must be one of "p" (default), "as" or "r". |
Author(s)
P. Lafaye de Micheaux and B. Liquet
References
Lafaye de Micheaux, P. (plafaye@club.fr), Liquet, B. "Understanding Convergence Concepts: a Visual-Minded and Graphical Simulation-Based Approach", The American Statistician, 63:2, 173–178, (2009).
See Also
check.convergence
, criterion
, generate
, investigate
,
law.plot2d
, law.plot3d
,
visualize.crit
, visualize.sp
Examples
myrbinom <- function(n,alpha){rbinom(n,1,1/(1:n))*((1:n)**alpha)}
data <- generate(randomgen=myrbinom,nmax=1000,M=500,argsgen=list(alpha=0.5))$data
critp <- criterion(data,epsilon=0.05,"p")$crit
critas <- criterion(data,epsilon=0.05,"as")$crit
p.as.plot(data,critp,critas,epsilon=0.05,nb.sp=10,mode="p")