Desktop productivity for business analysts and programmers

Group means in EG

Reply
Occasional Contributor
Posts: 18

Group means in EG

I have a dataset where some of the subjects are flagged '0' and some are flagged '1' (in a variable called 'censor'). I'm wanting to get means for several other variables (say age, gender etc), for each group (those with censor value 0 and those with censor value 1).

How would I do this in Enterprise Guide?

Respected Advisor
Posts: 3,823

Re: Group means in EG

You could use the query builder, create computed columns and select the summary groups as required.

Capture.PNG

Community Manager
Posts: 2,691

Re: Group means in EG

You could use the Summary Statistics task, assigning the grouping variable as the Classification variable role.  Here's an example result with SASHELP.CLASS using the Sex variable (either M or F).

class.png

Chris

Ask a Question
Discussion stats
  • 2 replies
  • 183 views
  • 0 likes
  • 3 in conversation