This function generates the base matrices used in the network learning.

base.construct(data_observe,data_fitted, degree=3,
len.knots=3,data_fitted_cov,agent,x_cov)

Arguments

data_observe

The gene expression matrix.

data_fitted

The matrix containing varying intercepts.

degree

The degree in the B-spline base. The default is 3

len.knots

The number of knots. The default is 3

data_fitted_cov

The matrix containing varying covariate effects

agent

The imputed disease risk.

x_cov

The vector including covariate values (eg., smoking: 0 and 1).

Value

The list of four matrices based on varying intercepts (X_big), varying covariate effects (X_big_cov), varying intercepts with the column containing ones (X_big_int), and varying covariates with the column containing ones (X_big_int_cov).