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. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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