generate_structured_corrmat: generate_structured_corrmat

View source: R/simulation2.R

generate_structured_corrmatR Documentation

generate_structured_corrmat

Description

parameters:

Usage

generate_structured_corrmat(
  g = NULL,
  num.variables = 100,
  hi.cor.tmp = 0.8,
  lo.cor.tmp = 0.2,
  hi.cor.fixed = 0.8,
  graph.type = "Erdos-Renyi",
  plot.graph = FALSE,
  make.diff.cors = FALSE,
  nbias = 1,
  use.Rcpp = FALSE
)

Arguments

g

random graph

num.variables

number of independent variables in data matrix

hi.cor.tmp

high correlation proportion

lo.cor.tmp

low correlation proportion

hi.cor.fixed

high correlation for network connected/non-functional features

graph.type

either Erdos-Renyi or Scale-Free graph

plot.graph

logical indicating whether to plot graph or not

make.diff.cors

logical indicating whether case correlation matrix for differential correlation is being created or not

nbias

number of functional interaction variables

use.Rcpp

logical, whether to use Rcpp or not

hi.cor

upper baseline pairwise functional correlation in control group

lo.cor

lower baseline pairwise functional correlation in control group

Value

A list containing:

cor.mat

structured correlation matrix

deg.vec

degree vector corresponding to network adjacency

A.mat

adjacency matrix corresponding to network

sig.vars

indices of functional variables


insilico/glmSTIR documentation built on July 7, 2023, 12:29 a.m.