Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I want to plot the percent (or mean) of a 0,1 variable, call it ‘x’, by a categorical variable, year, using the graph command and I’m stuck on how to do it. IT seems trivial to do but I don’t understand it.
(I want to stay out of ggraph because the even though examples are presented everything is complex.) Gene Maguin |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I just use the GUI till I figure out the syntax. Pretty sure
GRAPH /BAR(SIMPLE)=MEAN(X) BY Year. does what you want Gene. ***************************. DATA LIST FREE / Year X. BEGIN DATA 2010 0 2010 1 2010 1 2011 0 2011 0 2011 0 2012 1 2012 1 2012 1 2012 0 2013 1 2014 0 2014 1 END DATA. DATASET NAME Sim. EXECUTE. GRAPH /BAR(SIMPLE)=MEAN(X) BY Year. ***************************. ----- Andy W [hidden email] http://andrewpwheeler.wordpress.com/ -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Andy, Thank you.
-----Original Message----- From: SPSSX(r) Discussion <[hidden email]> On Behalf Of Andy W Sent: Thursday, May 13, 2021 12:38 PM To: [hidden email] Subject: Re: graph command help I just use the GUI till I figure out the syntax. Pretty sure GRAPH /BAR(SIMPLE)=MEAN(X) BY Year. does what you want Gene. ***************************. DATA LIST FREE / Year X. BEGIN DATA 2010 0 2010 1 2010 1 2011 0 2011 0 2011 0 2012 1 2012 1 2012 1 2012 0 2013 1 2014 0 2014 1 END DATA. DATASET NAME Sim. EXECUTE. GRAPH /BAR(SIMPLE)=MEAN(X) BY Year. ***************************. ----- Andy W [hidden email] http://andrewpwheeler.wordpress.com/ -- Sent from: http://spssx-discussion.1045642.n5.nabble.com/ ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Free forum by Nabble | Edit this page |