fitlm - change the output of this function
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tania
el 9 de Jul. de 2014
Comentada: Shashank Prasanna
el 9 de Jul. de 2014
Hey!
When I use fitlm I always get the following measurement criteria displayed: Number of observations: Error degrees of freedom: Root Mean Squared Error: R-squared: Adjusted R-Squared F-statistic vs. constant model: p-value
Is it possible to specify which ones I want to see and also is it possible to add the MSE and MAE? If so, how could I do it? Thank you
0 comentarios
Respuesta aceptada
Shashank Prasanna
el 9 de Jul. de 2014
Editada: Shashank Prasanna
el 9 de Jul. de 2014
Tania, you get everything by default. If you want to be specific you may have to suppress the commandline output (using semicolon, ; ) and then displaying it yourself using sprintf or disp:
Access properties like so:
mdl = fitlm(X,y);
mdl.Rsquared
2 comentarios
Shashank Prasanna
el 9 de Jul. de 2014
Take a look at the examples in the link I showed you and give it a try. After that if you have a specific questions, we may be able to help you better.
Más respuestas (0)
Ver también
Categorías
Más información sobre Analysis of Variance and Covariance en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!