Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Analytics
- /
- Stat Procs
- /
- proc surveymeans cl(type=logit)

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 02-06-2020 02:16 PM
(696 views)

Hi everyone,

After doing many proc surveyfreq procedures I always use cl(type=logit) to calculate the confidence intervals in my sample. I ilustrate it as follows,

proc surveyfreq data=have; cluster clustervar; strata stratavar; weight weightvar ; tables Varname1*Varname2 /ALPHA=0.1 cv cl(type=LOGIT) nowt row nototal nofreq; run;

However, I need to calculate the proportion for some variables, so I used the proc surveymeans proceadure as you can see,

proc surveymeans alpha=0.10 mean clmean(type=LOGIT) cv data= have; domain domainvar; cluster clustervar; strata stratavar; class categoricalvar

var categoricalvar; weight weightvar; run;

The problem is that (type=LOGIT) is not accepted by the proc surveymeans procedure. Is there any way to specify the (type=LOGIT) argument in this procedure?

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

In PROC SURVEYFREQ, you are estimating proportions in a cross tab. The CL option specifies what method you want to use to compute an interval estimate of the proportions in the population. The LOGIT option is one of four methods.They apply only to proportions.

In SURVEYMEANS, you can estimate quantities such as the mean, total, and quantiles, along with CLs. But the procedure only implements one method for these interval estimates. Thus it doesn't make sense to try to specify any option.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

What you say is confusing since SAS documentation specifies the next rule,

If you specify the keyword MEAN for a categorical variable, PROC SURVEYMEANS estimates the proportion, or relative frequency, for each level of the categorical variable. If you do not specify any statistic keywords in the PROC SURVEYMEANS statement, the procedure estimates the proportions for levels of the categorical variables, together with their standard errors and confidence limits.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

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.