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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 6514 views
  • 3 likes
  • 2 in conversation