COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Proc glm -- obtain coefficients on year fixed effect

• Follow

Hi deal all,

I have an equation like the following:

y = a1 + a2 + year fixed effect

I use:

proc glm data = xxx;
class year;
model y = a1 a2/ solution;
ods output ParameterEstimates=PE;
quit;

I should get two parameter estimates (coefficients) in this case using
the ods output function, but, I was wondering that if there is any way
to get coefficients on "year" here?

The class function I use here is more like a year fixed effect (or
year dummy).  So, in short, I would like to get the coefficients for
this "year" variable?


 0

On Aug 31, 6:57=A0pm, CC <chchanghe...@gmail.com> wrote:

> I have an equation like the following:
>
> y =3D a1 + a2 + year fixed effect
>
> I use:
>
> proc glm data =3D xxx;
> =A0 =A0class year;
> =A0 =A0model y =3D a1 a2/ solution;
> =A0 =A0ods output ParameterEstimates=3DPE;
> =A0 =A0quit;
>
> I should get two parameter estimates (coefficients) in this case using
> the ods output function, but, I was wondering that if there is any way
> to get coefficients on "year" here?
>
> The class function I use here is more like a year fixed effect (or
> year dummy). =A0So, in short, I would like to get the coefficients for
> this "year" variable?

You have to put year into the model statement.

For year to be a fixed effect, it does NOT have to be class.

--
Paige Miller
paige\dot\miller \at\ kodak\dot\com

 0
Reply paige.miller (581) 9/1/2010 3:22:10 PM

1 Replies
298 Views

Similiar Articles:

7/23/2012 6:27:15 AM