Is it possible to do multiple linear regression with constaint?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, i'm trying to delete coefficients if they fail the t-test and if the Rsquared is 0,5. The only problem is that i don't know how!! I'm using LinearModel.fit because i need to keep an eye on the coefficient names (im using datasets). Thank you in advance!
3 comentarios
Respuesta aceptada
Tom Lane
el 30 de Mayo de 2013
I don't really understand the question, but to the part where you express a desire to retain the variable names when you save the coefficients, you could try this:
Fstat{i} = REG.Coefficients(:,'tStat')
The difference is that ds.x fetches the variable x from the dataset ds, whereas ds(:,'x') creates a single-column dataset using only the column for x.
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!