estimate main effects and interactions
Mostrar comentarios más antiguos
Hi,
I'm trying to replicate Minitab functionality by creating a Pareto Chart of standardised effects.
I'm using data from the example linked here where a DOE was run with 4 inputs and the response was measured. In the link, a full effects table is calculated which has effects of each of the inputs A,B,C & D but also all of the interaction terms.
In Matlab I'm trying to use stepwiselm to fit a model to the table of data but I find that Matlab is removing terms based on their P-value. is there a way to use this function but ask for all linear and interaction terms to be retained?
Secondly, I'm looking at the functions plotEffects() and plotInteraction() to use on the model but is there a function or way to group all main & interaction effects together in a single table, as per table 2 in the link above?
Many thanks, Dan
6 comentarios
dpb
el 17 de Feb. de 2020
" I'm trying to use stepwiselm to fit a model to the table of data but I find that Matlab is removing terms based on their P-value. is there a way to use this function but ask for all linear and interaction terms to be retained?"
That's what stepwise does; why using it instead of fitlm if you want a specific model?
I've not investigated the specifics of the rest of the Q?
Dan Howe
el 17 de Feb. de 2020
Nope; doesn't appear that that's a named model option....fitlm seems to stop at two-level interactions without writing the model. (That said, I've not actually tried with higher numbers of independent variables to test; you've at least looked at what the 'interactions' value does it seems).
Dan Howe
el 18 de Feb. de 2020
dpb
el 18 de Feb. de 2020
You see the output from fitlm--for the specified model you get the coefficent estimates and statistics for each term in the model; the "effect" is just the magnitude of the coefficient. There's a whole bunch of other anciliary data available from the LinearModel object.
The precise format of a table in the identical form as above you'll undoubtedly have to create yourself from the information; MATLAB doesn't know how any particular user will want the output to look...
Dan Howe
el 18 de Feb. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!