BookmarkSubscribeRSS Feed
Jenga
Calcite | Level 5

I'm trying to conduct a one-way fixed effects analysis.  My data is below.  I read that I need to start by coding every observation with a dummy code, for example if "id=1 then subj_1=1 if id=2 then subj_2=2", etc. Is that something I do in a data step?  And then how do I run the Fixed Effects analysis using PROC PANEL  once I've done that.

Obsidyearlwagehoursageeduccollgradmspnev_marrnot_smsac_citysouth

1

1

82

  1. 1.80829

38

30

12

0

1

0

0

1

0

2

1

83

  1. 1.86342

38

31

12

0

1

0

0

1

0

3

1

85

  1. 1.78937

38

33

12

0

0

0

0

1

0

4

1

87

  1. 1.84653

40

35

12

0

0

0

0

1

0

5

1

88

  1. 1.85645

40

37

12

0

0

0

0

1

0

6

2

82

  1. 1.28093

48

36

17

1

1

0

0

0

0

7

2

83

  1. 1.51586

43

37

17

1

1

0

0

0

0

8

2

85

  1. 1.93017

35

39

17

1

1

0

0

0

0

9

2

87

  1. 1.91903

42

41

17

1

1

0

0

0

0

10

2

88

  1. 2.20097

42

43

17

1

1

0

0

0

0

11

3

82

  1. 1.81483

48

35

12

0

1

0

0

0

0

12

3

83

  1. 1.91991

40

36

12

0

1

0

0

0

0

13

3

85

  1. 1.95838

45

38

12

0

1

0

0

0

0

14

3

87

  1. 2.00707

40

40

12

0

1

0

0

0

0

15

3

88

  1. 2.08985

48

42

12

0

1

0

0

0

0

1 REPLY 1
Jenga
Calcite | Level 5

Oops, I forgot to mention that my dummy variables are if/then statements.  If id=1 then subj_1=1, else subj_1=0. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1009 views
  • 0 likes
  • 1 in conversation