retrieve estimates after lme

10 ビュー (過去 30 日間)
facundo sepulveda
facundo sepulveda 2021 年 1 月 26 日
回答済み: Cris LaPierre 2021 年 1 月 26 日
I estimate a linear model using lme:
tbreg = array2table([LW Xmat], 'VariableNames', {'wage','age','db6','db5', 'db4','db3','db2',...
'db1','dd','dd1','dd2','dd3','dd4','dd5','dd6','dd7','dd8','dd9','cons'});
lme = fitlme(tbreg,'wage~ db6 + db5 + db4 + db3 + db2 + db1 + dd + dd1 + dd2 + dd3 + dd4 + dd5 + dd6 + dd7 + dd8 + dd9 + (1|age) ');
After which i get a number of results, including a set of parameter estimates for the set of db and dd variables. How do I retrieve these as a standard matlab vector?

採用された回答

Cris LaPierre
Cris LaPierre 2021 年 1 月 26 日
The output of fitlme is a LinearMixedModel object. You can see the various properties here.
You can access the coefficients using dot notation.
lme.Coefficients
Include the column same if you just want the estimates.
lme.Coefficients.Estimate

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by