sample.gaussian.nulls.Rd
This function generates null samples of a given subset of variables for multivariate Gaussian covariates.
sample.gaussian.nulls(X, S, K, gamma_X.list_S, sigma_X.list_S, verbose = FALSE)
X | a n by p matrix, containing all the covariates. |
---|---|
S | a subset of covariates, for which null samples are constructed. |
K | number of null replicates. |
gamma_X.list_S | a list of length |S|, with each element being the linear coefficient of the given covariate on the other covariates. |
sigma_X.list_S | a list of length |S|, with each element being the variance of the conditional distribution. |
verbose | whether to show intermediate progress (default: FALSE). |
A list of length |S|, with each element being a (n*K)-dimensional vector, which contains K set of null samples.
Zhang L, Janson L (2020). “Floodgate: Inference for Model-Free Variable Importance.” arXiv preprint arXiv:2007.01283.
Other sampling:
cosuff.g_copula.nulls()
,
cosuff.gaussian.nulls()
,
sample.g_copula.nulls()