Anova Linear Regression Matlab. Once you fit a model you can use it to predict or simulate responses assess the model. All regression techniques begin with input data in an array X and response data in a separate vector y or input data in a table or dataset array tbl and response data as a column in tbl.
Estimate SE tStat pValue Intercept 12515 72176 1734 14406e-58 TNST -23058 016045 -14371 19579e-42 Seff 13087 10748 12176 94907e-32 Number of observations. Load the hospital data set and create a model of blood pressure as a function of age and gender. Vector of regression coefficients Bint.
To begin fitting a regression put your data into a form that fitting functions expect.
ANOVA is mostly concerned to present differences between categories means in the data while linear regression is mostly concern to estimate a sample mean response and an associated sigma2. Once you fit a model you can use it to predict or simulate responses assess the model. It can be viewed as an extension of the t-test we used for testing two population means. 1662x MATLAB Tutorials Linear Regression Multiple linear regression.
