FlagOneEdge {FLAG} | R Documentation |
Use FLAG to infer one edge. Given n*p data matrix, when we only interest in the conditional dependence between i-th and j-th variables.
Description
Use FLAG to infer one edge. Given n*p data matrix, when we only interest in the conditional dependence between i-th and j-th variables.
Usage
FlagOneEdge(data, i, j, scale.var = TRUE, infer = "llr", eps = 1e-07)
Arguments
data |
Matrix, with size n*p. |
i |
integer, the index of one element. |
j |
integer, the index of another element. |
scale.var |
Logical, whether to scale the variance of X to 1/p, default to be T(RUE). |
infer |
Character, option of different tests of inference where 'llr' for likelihood ratio test and 'wald' for Wald test based on Fisher Information Matrix. |
eps |
Numeric, a small term to avoid numerical problems, default to be 1e-7. |
Value
List, the list of log likelihood during iterations, the estimated precision value, the p-value of precision value estimation, the estimated Gamma_beta matrix with size 22, in the random effects model, the estimated Gamma_epsilon matrix with size 22, in the random effects model, the estimated off-diagonal element eta in the matrix Gamma_epsilon, the standard error of eta, the estimated partial correlation rho, the standard error of rho, the p-value of rho, the execution time.
Examples
FlagOneEdge(matrix, i, j)