simu_AR1: 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
rho
partial correlation in AR1
Value
a dataframe, with y1 to yk as responses and x1 to xk as predictors
Details
Simulate a simple AR1 model with k responses and k predictors, each predictor has effect on exact one response node