sample.gaussian.nulls: Generate null samples for multivariate Gaussian covariates

Description Usage Arguments Value References See Also

View source: R/sample.R

Description

This function generates null samples of a given subset of variables for multivariate Gaussian covariates.

Usage

1
sample.gaussian.nulls(X, S, K, gamma_X.list_S, sigma_X.list_S, verbose = FALSE)

Arguments

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).

Value

A list of length |S|, with each element being a (n*K)-dimensional vector, which contains K set of null samples.

References

\insertRef

LZ-LJ:2020floodgate

See Also

Other sampling: cosuff.g_copula.nulls(), cosuff.gaussian.nulls(), sample.g_copula.nulls()


LuZhangH/floodgate documentation built on Aug. 30, 2020, 2:10 a.m.