TSLS (variable input)

버전 1.0.0.0 (962 Bytes) 작성자: raffaele
this function allows multiple input arguments for a TSLS regression
다운로드 수: 243
업데이트 날짜: 2014/11/17

라이선스 보기

(written on matlab 2014, proved on matlab 2012 and 2010, and worked)
This function allows multiple input arguments for a TSLS regression, selecting which endogenous variables are going to be instrumented by a selected group of instruments. A TSLS is necessary when at least one of the endogenous variables is correlated with the error, and we replace these endogenous variables with an estimation made with the instrumental variables. In this function a general number of endogenous variables and the relative instruments to use can be selected . Then the function displays the coefficients of every first stage regression (of X_endogenous and Z_instruments), which allows to see if the instruments are relevant.
The basic algorithm is the following:
1st stage: gamma=inv(z'z)*(z'x)
x_hat=z*gamma
2nd stage: beta=inv(x_hat'x_hat)*(x_hat'y).
written by Raffaele Balzano, Luiss University, Rome

인용 양식

raffaele (2026). TSLS (variable input) (https://kr.mathworks.com/matlabcentral/fileexchange/48482-tsls-variable-input), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2014a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0