Description Usage Arguments Value Examples
Computation of weights for CCDF, used in permut function when dist_permuations
is specified.
1 | weights_ccdf(Y, X, Z = NULL)
|
Y |
a numeric vector of size |
X |
a numeric or factor vector(s) of size |
Z |
a numeric vector of size |
w
a vector of weights
1 2 3 | X <- as.factor(rbinom(n=100, size = 1, prob = 0.5))
Y <- ((X==1)*rnorm(n = 50,0,1)) + ((X==0)*rnorm(n = 50,0.5,1))
res_asymp <- weights_ccdf(Y,X)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.