simu_AR1 {CARlasso}R Documentation

Simulate a simple AR1 model with specific predictor

Description

Simulate a simple AR1 model with specific predictor

Usage

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


[Package CARlasso version 0.1.2 Index]