The Student Room Group

Fitting a model in R, Least squares estimates

E(grades)=[br](α,teacher=Female \Bbb E(grades) =[br]\bigg( \alpha, teacher = Female

and,

(α+β,teacher=Male\bigg( \alpha+\beta, teacher=Male

given that I have loaded up the required data, how should I go about fitting this model in R? Then I need to find the least squared estimates of both α\alpha and β\beta which I think I will be able to do once I can fit the model.
Thanks!
Original post by RVNmax
E(grades)=[br](α,teacher=Female \Bbb E(grades) =[br]\bigg( \alpha, teacher = Female

and,

(α+β,teacher=Male\bigg( \alpha+\beta, teacher=Male

given that I have loaded up the required data, how should I go about fitting this model in R? Then I need to find the least squared estimates of both α\alpha and β\beta which I think I will be able to do once I can fit the model.
Thanks!


Type help.start() in the console window, there will be a section on model fitting that you should read.

Quick Reply

Latest