필터 지우기
필터 지우기

Linear regression - how to plot at specified locations

조회 수: 1 (최근 30일)
hde
hde 2012년 8월 27일
I have a vector of basis/spline locations that I want to use to plot a piecewise linear regression to.
I have
y_i=B*beta + error.
B is a design matrix that calculates the time point in the data minus the knot location (each theta) when the differene is positive (x_i-theta_i)_+ , for each n data points.
How do I actually proram this in MATLAB? I want to plot y against x, where the linear regression changes at each theta?
Any help in the right direction would be much appreciated.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by