powered by
LSE_Reg_per() function gives the least squares estimation of parameters of a periodic coefficients regression model.
LSE_Reg_per(x,y,s)
Parameters to be estimated.
Matrix of predictors.
The response vector.
A list of independent variables with dimension \(p\).
A response variable.
A period of the regression model.
set.seed(6) n=400 s=4 x1=rnorm(n,0,1.5) x2=rnorm(n,0,0.9) x3=rnorm(n,0,2) x4=rnorm(n,0,1.9) y=rnorm(n,0,2.5) x=list(x1,x2,x3,x4) LSE_Reg_per(x,y,s)
Run the code above in your browser using DataLab