p.as.plot | R Documentation |
This function enables one to draw the interactive plots used to study convergence in probability and almost surely.
p.as.plot(data,critp,critas,epsilon=0.05,nb.sp=10,mode="p")
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". |
P. Lafaye de Micheaux and B. Liquet
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).
check.convergence
, criterion
, generate
, investigate
,
law.plot2d
, law.plot3d
,
visualize.crit
, visualize.sp
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.