Linear Regression - Repeat Measurements
Show older comments
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
Answers (2)
Star Strider
on 4 May 2014
1 vote
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 Comment
Star Strider
on 4 May 2014
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.)
Anna
on 4 May 2014
0 votes
Categories
Find more on Multiple Linear Regression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!