simu_AR1: Simulate a simple AR1 model with specific predictor

Description Usage Arguments Details Value

View source: R/utils.R

Description

Simulate a simple AR1 model with specific predictor

Usage

1
simu_AR1(n = 100, k = 5, rho = 0.7)

Arguments

n

sample size

k

number of responses

rho

partial correlation in AR1

Details

Simulate a simple AR1 model with k responses and k predictors, each predictor has effect on exact one response node

Value

a dataframe, with y1 to yk as responses and x1 to xk as predictors


CARlasso documentation built on Aug. 12, 2021, 1:05 a.m.