How to estimate the constant term in a multiple linear regression?
21 ビュー (過去 30 日間)
回答 (3 件)
the cyclist 2015 年 2 月 9 日
Can you post a very small example where you are seeing implausible results? The syntax of mvregress can be a bit tricky (and I actually think my simple suggestion may actually a bit misleading.)
I have posted a very detailed example of using mvregress in this question that you might want to take a look at.
There is also useful information in this question.
Tom Lane 2015 年 2 月 9 日
You write "X=a+bY+BZ" suggesting that X may be a response and Y and Z predictors. But the first input to mvregress is the predictor matrix, and the second is the response matrix. Perhaps you need to swap them, or maybe you just need to explain what you're trying to fit.