LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2006, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 17 Aug 2006 07:41:12 -0400
Reply-To:     Kijoeng Nam <kijoeng@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Kijoeng Nam <kijoeng@GMAIL.COM>
Subject:      Programming Question : sample size in proc surveyreg
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello,

I ran the following code.

%MACRO ancova1; %DO J = 1 %to 1 ; proc surveyreg data = milk&j; class mgroup; strata SDMVSTRA; cluster SDMVPSU; weight WTINT2YR; model BMXBMI = milk RIDRETH1 PADcom3 ; title &&titleanovaA&j; run; %END; %MEND ; %ancova1;

Here, I want to get the samplesize of Observations used in the analysis in each milk&j by class (mgroup).

However, I just get the following results which do not contain the samplesize of Observations used in the analysis by class and only contain sample size of Observations used in the analysis of milk&j.

How can I get the samplesize of Observations used in the analysis in each milk&j by class (mgroup)?

Result what I got:

milk-based : ANCOVA for the Total sample 06:43 Friday, August 18, 2006 259

The SURVEYREG Procedure

Regression Analysis for Dependent Variable BMXBMI

Data Summary

Number of Observations 1349

Sum of Weights 22754363

Weighted Mean of BMXBMI 19.19817

Weighted Sum of BMXBMI 436842146

Design Summary

Number of Strata 15

Number of Clusters 30

Fit Statistics

R-square 0.01051

Root MSE 4.4190

Denominator DF 15

Class Level Information

Class

Variable Levels Values

mgroup 4 1 2 3 4

Tests of Model Effects

Effect Num DF F Value Pr > F

Model 3 3.01 0.0633

Intercept 1 3141.09 <.0001

milk 1 1.87 0.1916

RIDRETH1 1 1.83 0.1958

PADcom3 1 4.40 0.0532

NOTE: The denominator degrees of freedom for the F tests is 15.


Back to: Top of message | Previous page | Main SAS-L page