BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sstoline
Calcite | Level 5

Dear Steve:

How to control this SAS code to get the plot of the row percents.

ods graphics on;

ods output wtfreqplot=wtfreqplot;

proc surveyfreq data = prepregnancystrata12Tier;

strata STRATUM1;

weight WTANAL;

table PREV_LB*Tier/ CL clwt row nowt wchisq chisq chisq1 plots(only)=wtfreqplot(type=dotplot scale=percent); /*orient=vertical*/

run;

ods graphics off;

It gives the graph of the percent of the ones out of the table total. But instead, I do not to get the graph of the row percent.

many thanks

Steven

sstoline
Calcite | Level 5

Dear Steve:

I tried to use this one, but it still gives me the plot for the table total percent.

So, how to modify it to be able to get the graph of the row percents.

ods graphics on;

proc surveyfreq data = prepregnancystrata12Tier;

strata STRATUM1;

weight WTANAL;

table PREV_LB*Tier/row plots=(wtfreqplot(cl));

run;

many thanks

Steven

sstoline
Calcite | Level 5

Dear Steve:

For 11 months, a linear trend in the means would be:

LSMESTIMATE months 'Linear trend' -5 -4 -3 -2 -1 0 1 2 3 4 5/cl;

If we have only 4 months, how is the linear trend in the means looks like?

Thank you very much

Steven

SteveDenham
Jade | Level 19

-3 -1 1 3

Google is your friend.  Try "orthogonal polynomial" as a search term.  There are multiple sites that will calculate the coefficients for you.

Steve Denham

sstoline
Calcite | Level 5
Dear Steve:

When request the graph of the lsmeans In Proc Surveyreg, within Plots = options in LSMEANS statement, can we get something like this graph for the confidence interval of means.


thank you very much

Steven

sstoline
Calcite | Level 5

Dear Steve:

In proc surveyfreq: how can I force the plots = to plot the row percent NOT just percent.

Thanks

Steve

SteveDenham
Jade | Level 19

I would have to search the documentation on this one.  I don't generally use the plots.

Steve Denham

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 21 replies
  • 4142 views
  • 3 likes
  • 2 in conversation