SES.temporal(target, reps, group, dataset, max_k = 3, threshold = 0.05, test = NULL,
user_test = NULL, hash = FALSE, hashObject = NULL, slopes = FALSE, ncores = 1)
MMPC.temporal(target, reps, group, dataset, max_k = 3, threshold = 0.05, test = NULL,
user_test = NULL, hash = FALSE, hashObject = NULL, slopes = FALSE, ncores = 1)
testIndGLMM
, which fits linear mixed models.testIndGLMM.
Conditional independence test functions to be pass through the user_test argument should have the same signature of the included test. See "?testIndFisher" for an example.
For all the available conditional independence tests that are currently included on the package, please see "?CondIndTests".
If two or more p-values are below the machine epsilon (.Machine$double.eps which is equal to 2.220446e-16), all of them are set to 0. To make the comparison or the ordering feasible we use the logarithm of the p-value. The max-min heuristic though, requires comparison and an ordering of the p-values. Hence, all conditional independence tests calculate the logarithm of the p-value.
If there are missing values in the dataset (predictor variables) columnwise imputation takes place. The median is used for the continuous variables and the mode for categorical variables. It is a naive and not so clever method. For this reason the user is encouraged to make sure his data contain no missing values.
If you have percentages, in the (0, 1) interval, they are automatically mapped into $R$ by using the logit transformation and a linear mixed model is fitted. If you have binary data, logistic mixed regression is applied and if you have discrete data (counts), Poisson mixed regression is applied.50$>
CondIndTests, testIndGLMM
#require(gRbase) #for faster computations in the internal functions
#require(lme4)
#data(sleepstudy)
#attach(sleepstudy)
#x <- matrix(rnorm(180 * 100),ncol = 100) ## unrelated preidctor variables
#m1 <- SES.temporal(Reaction, Days, Subject, x)
#m2 <- MMPC.temporal(Reaction, Days, Subject, x)
Run the code above in your browser using DataLab