ranXch {binarySimCLF} | R Documentation |
Correlated Binary Data With Exchangeable Correlation
Description
Generates correlated binary data with an exchangeable correlation.
Usage
ranXch(u, alpha, seed)
Arguments
u |
The mean vector. |
alpha |
The exchangeable correlation parameter. |
seed |
Sets the seed. |
Value
The function returns a list with two components.
succeed |
A logical indicating whether the routine succeeded. TRUE if
it succeeded. FALSE if it did not. FALSE indicates that it is NOT CLF
compatible. |
y |
Outcome: If succeed is FALSE then y is NULL .
If succeed is TRUE then y is the outcome vector. |
See Also
binarySimCLF
.
Examples
#Example
u = c(0.25, 0.24, 0.26, 0.35); u
ranXch(u,0.25)
[Package
binarySimCLF version 1.0
Index]