STAT3012 Lecture Notes - Lecture 17: Categorical Variable, Covariate, Scatter Plot

23 views17 pages
Lecture 17 – Quantitative factors
New concepts
Quantitative factor
Polynomial regression and ANOVA
Nesting of linear effects
Bartlett test to assess homoscedasticity assumption
Applied Linear Models: Lecture 17 1
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 17 pages and 3 million more documents.

Already have an account? Log in
New topic – Quantitative factors
Theory – Factor or numerical variables?
Sometimes it is unclear as to whether a particular explanatory variable should be
regarded as a factor (categorical explanatory variable) or a numerical covariate.
We will see that polynomial regression is the key to understand the problem.
Example – Drug levels
Should the effect of a drug be modelled using a
3 level factor
(low, medium and high doses) 1-way ANOVA
or as
numerical variable
(0.5, 1.0, 2.0 mg doses) regression ?
Applied Linear Models: Lecture 17 2
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 17 pages and 3 million more documents.

Already have an account? Log in
Theory – Polynomial regression
Suppose the ith treatment corresponds to a measurement xiR.
We can
plot the sample mean response at each value xiby plotting (xi, Y i),
produce boxplots at each value xi.
If we have ttreatments then we have tpoints on the plot.
By looking at the way the mean values vary with xiwe can put forward a model
for E(Y|x).
Through any tpoints we can fit a polynomial of degree (t1).
Thus the most general polynomial regression model for this situation is
Yij =β0+β1xi+. . . +βt1xt1
i+ǫij, ǫij NID(0, σ2).(1)
Applied Linear Models: Lecture 17 3
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 17 pages and 3 million more documents.

Already have an account? Log in

Document Summary

Sometimes it is unclear as to whether a particular explanatory variable should be regarded as a factor (categorical explanatory variable) or a numerical covariate. We will see that polynomial regression is the key to understand the problem. Should the e ect of a drug be modelled using a. 3 level factor (low, medium and high doses) 1-way anova or as. Suppose the ith treatment corresponds to a measurement xi r. We can: plot the sample mean response at each value xi by plotting (xi, y i ), produce boxplots at each value xi. If we have t treatments then we have t points on the plot. By looking at the way the mean values vary with xi we can put forward a model for e(y |x). Through any t points we can t a polynomial of degree (t 1). Thus the most general polynomial regression model for this situation is i + ij, ij n id(0, 2).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions

Related Documents