Description Usage Arguments Details Value Note See Also Examples
Compute the empirical cumulative distribution function for a bivariate continuous distribution.
1 | ecdf2D(x, y)
|
x, y |
the two continuous variables. Must be of same length. |
The bidimensional e.c.d.f. (empirical cumulative distribution function) Fn is a step function with jumps i/n at observation values, where i is the number of tied observations at that value.
For observations (x1,y1), ..., (x_n,y_n), Fn is defined as
Fn(t1,t2) = #{xi<=t1,yi<=t2}/n = 1/n sum_{i=1}^n Indicator(xi<=t1,yi<=t2)
The result is returned as a matrix of dimension (n*n) where the entry (i,j) corresponds to Fn(xi,yj), i=1, ...,n, j=1, ...,n.
Missing values are removed such that if a value of x
(resp. y
) is missing then the corresponding
values of both x
and y
are removed. The bidimensional e.c.d.f. is then computed on the remaining elements.
indeptest
; the bivariate
package also provides plots for the
bidimensional e.c.d.f.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.