Linear Regression - Repeat Measurements
이전 댓글 표시
Hi Everyone,
I am fairly new to Matlab and have a problem using Linear Regression.
I have an experiment where I have taken multiple repeat measurements. To simplify my problem I have a 10 by 1 vector of predictor variables (independent variables) and a 10 by 5 matrix of response variables (dependent variables). I know that these data should follow a linear trend and I want to evaluate how linear they actually are.
I want to apply a robust least square fitting to the average of my dependent variables at each independent variable. I can do this using robustfit. My problem arises as I also would like to weight the least square fitting method by the variance of the dependent variables at each data point. I can't figure out how to do this.
Any help would be greatly appreciated!
Best,
Siri
답변 (2개)
Star Strider
2014년 5월 4일
1 개 추천
Repeated measures problems have their own statistical requirements. I agree with Tom Lane’s answer to: Setting weights for robustfit command because I can’t improve on it. See the documentation for glmfit for details.
댓글 수: 1
Star Strider
2014년 5월 4일
After looking around the Statistics Toolbox functions for a few minutes, I suggest you see the documentation: Set Up Multivariate Regression Problems. It seems to be closest to what you need.
(I apologise for the delay ... GMT-6 here.)
카테고리
도움말 센터 및 File Exchange에서 Univariate Discrete Distributions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!