The SURVEYLOGISTIC Procedure

Hypothesis Testing and Estimation

Degrees of Freedom

In this section, degrees of freedom (df) refers to the denominator degrees of freedom for F statistics in hypothesis testing. It also refers to the degrees of freedom in t tests for parameter estimates and odds ratio estimates, and for computing t distribution percentiles for confidence limits of these estimates. The value of df is determined by the design degrees of freedom f and by what you specify in the DF= option in the MODEL statement.

The default df is determined as

d f equals StartLayout Enlarged left-brace 1st Row 1st Column f minus r plus 1 2nd Column for Taylor variance estimation method 2nd Row 1st Column f 2nd Column for replication variance estimation methods EndLayout

where f is the design degrees of freedom and r is the rank of the contrast of model parameters to be tested.

Design Degrees of Freedom f

The design degrees of freedom f is determined by the survey design and the variance estimation method.

Design Degrees of Freedom f for the Taylor Series Method

For Taylor series variance estimation, the design degrees of freedom f can depend on the number of clusters, the number of strata, and the number of observations. These numbers are based on the observations that are included in the analysis; they do not count observations that are excluded from the analysis because of missing values. If all values in a stratum are excluded from the analysis as missing values, then that stratum is called an empty stratum. Empty strata are not counted in the total number of strata for the analysis. Similarly, empty clusters and missing observations are not included in the totals counts of clusters and observations that are used to compute the f for the analysis.

If you specify the MISSING option in the CLASS statement, missing values are treated as valid nonmissing levels and are included in determining the f. If you specify the NOMCAR option for Taylor series variance estimation, observations that have missing values for variables in the regression model are included. For more information about missing values, see the section Missing Values.

Using the notation that is defined in the section Notation, let n overTilde be the total number of clusters if the design has a CLUSTER statement; let n be the total sample size; and let H be the number of strata if there is a STRATA statement, or 1 otherwise. Then for Taylor series variance estimation, the design degrees of freedom is

f equals StartLayout Enlarged left-brace 1st Row 1st Column n overTilde minus upper H 2nd Column if the design contains clusters 2nd Row 1st Column n minus upper H 2nd Column if the design does not contain clusters EndLayout
Design Degrees of Freedom f for Replication Methods

For replication variance estimation methods that include a REPWEIGHTS statement, the design degrees of freedom f equals the number of REPWEIGHTS variables, unless you specify an alternative in the DF= option in a REPWEIGHTS statement.

When the BRR method (including Fay’s method) is requested but no REPWEIGHTS statement is specified, the design degrees of freedom f equals the number of strata.

When the jackknife method or the bootstrap method is requested but no REPWEIGHTS statement is specified, the design degrees of freedom f is the same as in the Taylor series method described in the previous section.

Setting Design Degrees of Freedom f to a Specific Value

If you do not want to use the default design degrees of freedom, then you can specify the DF=DESIGN(value) or DF=PARMADJ(value) (for Taylor method only) option in the MODEL statement, where value is a positive number. Then f=value.

However, if you specify the value in the DF= option in the MODEL statement as well as with the DF= option in a REPWEIGHTS statement, then the df is determined by the value in the MODEL statement, and the DF= option in the REPWEIGHTS statement is ignored.

Setting Design Degrees of Freedom to Infinity

If you specify DF=INFINITY in the MODEL statement, then the df is set to be infinite.

As the denominator degrees of freedom grows, an F distribution approaches a chi-square distribution, and similarly a t distribution approaches a normal distribution. Therefore, when you specify DF=INFINITY in the MODEL statement), PROC SURVEYLOGISTIC uses chi-square tests and normal distribution percentiles to construct confidence intervals.

Modifying Degrees of Freedom with the Number of Parameters

When you use Taylor series variance estimation (by default or when you specify VARMETHOD=TAYLOR in the MODEL statement), and you are fitting a model that has many parameters relative to the design degrees of freedom, it is appropriate to modify the design degrees of freedom by using the number of nonsingular parameters p in the model (Korn and Graubard (1999, section 5.2), Rao, Scott, and Skinner (1998)). You can specify DF=PARMADJ or DF=PARMADJ(value) in the MODEL statement to request this modification only for Taylor series variance estimation method; and this option does not apply to the replication variance estimation method.

Let f be the design degrees of freedom that is described in the section Design Degrees of Freedom f for the Taylor Series Method. By default, or if you specify the DF=PARMADJ option, the df is modified as d f equals f minus p plus 1.

Testing Global Null Hypothesis: BETA=0

The global null hypothesis refers to the null hypothesis that all the explanatory effects can be eliminated and the model can contain only intercepts. By using the notations in the section Logistic Regression Models, the global null hypothesis is defined as follows:

  • If you have a cumulative model whose model parameters are bold-italic theta equals left-parenthesis bold-italic alpha prime comma bold-italic beta Superscript prime Baseline right-parenthesis prime, where bold-italic alpha are the parameters for the intercepts and bold-italic beta are the parameters for the explanatory effects, then upper H 0 colon bold-italic beta equals bold 0. The number of restrictions r that are imposed on bold-italic theta is the number of parameters in slope parameter bold-italic beta equals left-parenthesis beta 1 comma beta 2 comma ellipsis comma beta Subscript k Baseline right-parenthesis prime: r equals k.

  • If you have a generalized logit model whose model parameters are bold-italic theta equals left-parenthesis bold-italic beta prime 1 comma bold-italic beta prime 2 comma ellipsis comma bold-italic beta prime Subscript upper D right-parenthesis prime and bold-italic beta Subscript d Baseline equals left-parenthesis beta Subscript d Baseline 1 Baseline comma beta Subscript d Baseline 2 Baseline comma ellipsis comma beta Subscript d k Baseline right-parenthesis prime left-parenthesis d equals 1 comma 2 comma ellipsis comma upper D right-parenthesis, then upper H 0 colon left-parenthesis beta Subscript d Baseline 2 Baseline comma ellipsis comma beta Subscript d k Baseline right-parenthesis prime equals bold 0 left-parenthesis d equals 1 comma 2 comma ellipsis comma upper D right-parenthesis. The number of restrictions r that are imposed on bold-italic theta is the total number of slope parameters in bold-italic beta prime 1 comma bold-italic beta prime 2 comma ellipsis comma bold-italic beta prime Subscript upper D: r equals left-parenthesis k minus 1 right-parenthesis asterisk upper D.

PROC SURVEYLOGISTIC displays these tests in the "Testing Global Null Hypothesis: BETA=0" table.

Rao-Scott Likelihood Ratio Chi-Square Test

For complex survey design, you can use a design-adjusted Rao-Scott likelihood ratio chi-square test to test the global null hypothesis. For information about design-adjusted chi-square tests, see Lohr (2010, Section 10.3.2), Rao and Scott (1981), Rao and Scott (1984), Rao and Scott (1987), Thomas and Rao (1987), Rao and Thomas (1989), and Thomas, Singh, and Roberts (1996).

If you specify the CHISQ(NOADJUST) option, PROC SURVEYLOGISTIC computes the likelihood ratio chi-square test without the Rao-Scott design correction. If you specify the CHISQ(FIRSTORDER) option, PROC SURVEYLOGISTIC performs a first-order Rao-Scott likelihood ratio chi-square test. If you specify the CHISQ(SECONDORDER) option, PROC SURVEYLOGISTIC performs a second-order Rao-Scott likelihood ratio chi-square test.

If you do not specify the CHISQ option, the default test depends on the design and the model. By default, PROC SURVEYLOGISTIC performs a first-order or second-order Rao-Scott likelihood ratio chi-square (Satterthwaite) test if your design is not simple random sampling or when you provide replicate weights. Otherwise, if your design is simple random sampling and you do not provide replicate weights, PROC SURVEYLOGISTIC does not make any adjustment for the likelihood ratio test. In other words:

  • If your design does not contain stratification nor clustering, and you do not provide replicate weights, then by default PROC SURVEYLOGISTIC performs a likelihood ratio chi-square test without any adjustment.

  • If your design contains either stratification or clustering, or if you provide replicate weights, then by default PROC SURVEYLOGISTIC performs a likelihood ratio chi-square test with Rao-Scott adjustment. However, the default order of the adjustment depends on the number of model parameters excluding the intercepts.

    • If there is more than one nonintercept parameter in the model, the default is the second-order Rao-Scott likelihood ratio test.

    • If there is only one nonintercept parameter in the model, there is no need to compute the second-order adjustment. Therefore, the default is the first-order Rao-Scott likelihood ratio test.

Let ModifyingAbove bold-italic theta With caret be the estimated parameters, let ModifyingAbove bold-italic theta With caret Subscript upper H 0 be the estimated parameters under the global null hypothesis, and let r be the restrictions imposed on bold-italic theta under the global null hypothesis upper H 0. Let upper L left-parenthesis bold-italic theta right-parenthesis be the log-likelihood function that is computed by using normalized weights.

Denote the estimated covariance matrix of ModifyingAbove bold-italic theta With caret under simple random sampling as ModifyingAbove upper V With caret Superscript srs Baseline left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis, and its partition corresponding to the r slope parameters as ModifyingAbove upper V With caret Subscript r r Superscript srs Baseline left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis. Similarly, denote the estimated covariance matrix of ModifyingAbove bold-italic theta With caret under the sample design as ModifyingAbove upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis, and its partition corresponding to the r slope parameters as ModifyingAbove upper V With caret Subscript r r Baseline left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis.

Define the design effect matrix E as

upper E equals ModifyingAbove upper V With caret Subscript r r Baseline left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis left-parenthesis ModifyingAbove upper V With caret Subscript r r Superscript srs Baseline left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis right-parenthesis Superscript negative 1

Denote r Superscript asterisk as the rank of E and the positive eigenvalues of the design matrix E as delta 1 greater-than-or-equal-to delta 2 greater-than-or-equal-to midline-horizontal-ellipsis greater-than-or-equal-to delta Subscript r Sub Superscript asterisk Baseline greater-than 0.

Likelihood Ratio Chi-Square Test

Without the Rao-Scott design correction, the global null hypothesis is tested using either the chi-square statistics,

upper Q Subscript chi squared Baseline equals 2 left-bracket upper L left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis minus upper L left-parenthesis ModifyingAbove bold-italic theta With caret Subscript upper H 0 Baseline right-parenthesis right-bracket

with r degrees of freedom, or an equivalent F statistics,

upper F equals 2 left-bracket upper L left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis minus upper L left-parenthesis ModifyingAbove bold-italic theta With caret Subscript upper H 0 Baseline right-parenthesis right-bracket slash r

with left-parenthesis r comma normal infinity right-parenthesis degrees of freedom.

Rao-Scott First-Order Chi-Square Test

To address the impact of a complex survey design on the significance level of the likelihood ratio test, Rao and Scott (1984) proposed a first-order correction to the chi-square statistics as

upper Q Subscript upper R upper S Baseline 1 Baseline equals upper Q Subscript chi squared Baseline slash delta overbar Subscript dot

where the first-order design correction,

delta overbar Subscript dot Baseline equals sigma-summation Underscript i equals 1 Overscript r Superscript asterisk Baseline Endscripts delta Subscript i Baseline slash r Superscript asterisk

is the average of positive eigenvalues of the design effect matrix E.

Under the null hypothesis, the first-order Rao-Scott chi-square upper Q Subscript upper R upper S Baseline 1 approximately follows a chi-square distribution with r Superscript asterisk degrees of freedom.

The corresponding F statistic is

upper F Subscript upper R upper S Baseline 1 Baseline equals upper Q Subscript upper R upper S Baseline 1 Baseline slash r Superscript asterisk

which has an F distribution with r Superscript asterisk and d f dot r Superscript asterisk degrees of freedom under the null hypothesis (Thomas and Rao 1984, 1987), and df is the design degrees of freedom as described in the section Design Degrees of Freedom f for the Taylor Series Method.

Rao-Scott Second-Order Chi-Square Test

Rao and Scott (1987) further proposed the second-order (Satterthwaite) Rao-Scott chi-square statistic as

upper Q Subscript upper R upper S Baseline 2 Baseline equals upper Q Subscript upper R upper S Baseline 1 Baseline slash left-parenthesis 1 plus ModifyingAbove a With caret squared right-parenthesis

where upper Q Subscript upper R upper S Baseline 1 is the first-order Rao-Scott chi-square statistic and the second-order design correction is computed from the coefficient of variation of the eigenvalues of the design effect matrix E as

ModifyingAbove a With caret squared equals StartFraction 1 Over r Superscript asterisk Baseline minus 1 EndFraction sigma-summation Underscript i equals 1 Overscript r Superscript asterisk Baseline Endscripts left-parenthesis delta Subscript i Baseline minus delta overbar Subscript dot Baseline right-parenthesis squared slash delta overbar Subscript dot Superscript 2

Under the null hypothesis, the second-order Rao-Scott chi-square upper Q Subscript upper R upper S Baseline 2 approximately follows a chi-square distribution with r Superscript asterisk Baseline slash left-parenthesis 1 plus ModifyingAbove a With caret squared right-parenthesis degrees of freedom.

The corresponding F statistic is

upper F Subscript upper R upper S Baseline 2 Baseline equals upper Q Subscript upper R upper S Baseline 2 Baseline left-parenthesis 1 plus ModifyingAbove a With caret squared right-parenthesis slash r Superscript asterisk

which has an F distribution with r Superscript asterisk Baseline slash left-parenthesis 1 plus ModifyingAbove a With caret squared right-parenthesis and d f dot r Superscript asterisk slash left-parenthesis 1 plus ModifyingAbove a With caret squared right-parenthesis degrees of freedom under the null hypothesis (Thomas and Rao 1984, 1987), and df is the design degrees of freedom as described in the section Design Degrees of Freedom f for the Taylor Series Method.

Wald Confidence Intervals for Parameters

Wald confidence intervals are sometimes called normal confidence intervals. They are based on the asymptotic normality of the parameter estimators. The 100 left-parenthesis 1 minus alpha right-parenthesis% Wald confidence interval for theta Subscript j is given by

ModifyingAbove theta With caret Subscript j Baseline plus-or-minus z Subscript 1 minus alpha slash 2 Baseline ModifyingAbove sigma With caret Subscript j

where z Subscript 1 minus alpha slash 2 is the 100 left-parenthesis 1 minus alpha slash 2 right-parenthesisth percentile of the standard normal distribution, ModifyingAbove theta With caret Subscript j is the pseudo-estimate of theta Subscript j, and ModifyingAbove sigma With caret Subscript j is the standard error estimate of ModifyingAbove theta With caret Subscript j in the section Variance Estimation.

Testing Linear Hypotheses about the Regression Coefficients

Linear hypotheses for bold-italic theta can be expressed in matrix form as

upper H 0 colon bold upper L bold-italic theta equals bold c

where bold upper L is a matrix of coefficients for the linear hypotheses and bold c is a vector of constants whose rank is r. The vector of regression coefficients bold-italic theta includes both slope parameters and intercept parameters.

Let ModifyingAbove bold-italic theta With caret be the MLE of bold-italic theta, and let ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis be the estimated covariance matrix that is described in the section Variance Estimation.

For the Taylor series variance estimation method, PROC SURVEYLOGISTIC computes the test statistic for the null hypothesis upper H 0 as

upper W Subscript upper F Baseline equals left-parenthesis StartFraction f minus r plus 1 Over f r EndFraction right-parenthesis left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis prime left-bracket bold upper L ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis bold upper L prime right-bracket Superscript negative 1 Baseline left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis

where f is the design degrees of freedom as described in the section Design Degrees of Freedom f for the Taylor Series Method.

For the replication variance estimation method, PROC SURVEYLOGISTIC computes the test statistic for the null hypothesis upper H 0 as

upper W Subscript upper F Baseline equals StartFraction 1 Over r EndFraction left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis prime left-bracket bold upper L ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis bold upper L prime right-bracket Superscript negative 1 Baseline left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis

Under the upper H 0, upper W Subscript upper F has an F distribution with left-parenthesis r comma d f right-parenthesis degrees of freedom, and the denominator degrees of freedom df is described in the section Degrees of Freedom.

As the denominator degrees of freedom grows, an F distribution approaches a chi-square distribution, and similarly a t distribution approaches a normal distribution. If you specify DF=INFINITY in the MODEL statement, PROC SURVEYLOGISTIC computes the test statistic for both Taylor series and replication methods for testing the null hypothesis upper H 0 as

upper W Subscript chi squared Baseline equals left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis prime left-bracket bold upper L ModifyingAbove bold upper V With caret left-parenthesis ModifyingAbove bold-italic theta With caret right-parenthesis bold upper L prime right-bracket Superscript negative 1 Baseline left-parenthesis bold upper L ModifyingAbove bold-italic theta With caret minus bold c right-parenthesis

Under upper H 0, chi Subscript upper W Superscript 2 has an asymptotic chi-square distribution with r degrees of freedom.

Type 3 Tests

For models that use less-than-full-rank parameterization (as specified by the PARAM=GLM option in the CLASS statement), a Type 3 test of an effect of interest (main effect or interaction) is a test of the Type III estimable functions that are defined for that effect. When the model contains no missing cells, performing the Type 3 test of a main effect corresponds to testing the hypothesis of equal marginal means. For more information about Type III estimable functions, see Chapter 53, The GLM Procedure, and Chapter 16, The Four Types of Estimable Functions. Also see Littell, Freund, and Spector (1991).

For models that use full-rank parameterization, all parameters are estimable when there are no missing cells, so it is unnecessary to define estimable functions. The standard test of an effect of interest in this case is the joint test that the values of the parameters associated with that effect are zero. For a model that uses effects parameterization (as specified by the PARAM=EFFECT option in the CLASS statement), performing the joint test for a main effect is equivalent to testing the equality of marginal means. For a model that uses reference parameterization (as specified by the PARAM=REF option in the CLASS statement), performing the joint test is equivalent to testing the equality of cell means at the reference level of the other model effects. For more information about the coding scheme and the associated interpretation of results, see Muller and Fetterman (2002, Chapter 14).

If there is no interaction term, the Type 3 test of an effect for a model that uses GLM parameterization is the same as the joint test of the effect for the model that uses full-rank parameterization. In this situation, the joint test is also called the Type 3 test. For a model that contains an interaction term and no missing cells, the Type 3 test of a component main effect under GLM parameterization is the same as the joint test of the component main effect under effect parameterization. Both test the equality of cell means. But this Type 3 test differs from the joint test under reference parameterization, which tests the equality of cell means at the reference level of the other component main effect. If some cells are missing, you can obtain meaningful tests only by testing a Type III estimable function, so in this case you should use GLM parameterization.

The results of a Type 3 test or a joint test do not depend on the order in which you specify the terms in the MODEL statement.

Odds Ratio Estimation

Consider a dichotomous response variable with outcomes event and nonevent. Let a dichotomous risk factor variable X take the value 1 if the risk factor is present and 0 if the risk factor is absent. According to the logistic model, the log odds function, g left-parenthesis upper X right-parenthesis, is given by

g left-parenthesis upper X right-parenthesis identical-to log left-parenthesis StartFraction probability left-parenthesis e v e n t vertical-bar upper X right-parenthesis Over probability left-parenthesis n o n e v e n t vertical-bar upper X right-parenthesis EndFraction right-parenthesis equals beta 0 plus beta 1 upper X

The odds ratio psi is defined as the ratio of the odds for those with the risk factor (X = 1) to the odds for those without the risk factor (X = 0). The log of the odds ratio is given by

log left-parenthesis psi right-parenthesis identical-to log left-parenthesis psi left-parenthesis upper X equals 1 comma upper X equals 0 right-parenthesis right-parenthesis equals g left-parenthesis upper X equals 1 right-parenthesis minus g left-parenthesis upper X equals 0 right-parenthesis equals beta 1

The parameter, beta 1, associated with X represents the change in the log odds from X = 0 to X = 1. So the odds ratio is obtained by simply exponentiating the value of the parameter associated with the risk factor. The odds ratio indicates how the odds of event change as you change X from 0 to 1. For instance, psi equals 2 means that the odds of an event when X = 1 are twice the odds of an event when X = 0.

Suppose the values of the dichotomous risk factor are coded as constants a and b instead of 0 and 1. The odds when upper X equals a become exp left-parenthesis beta 0 plus a beta 1 right-parenthesis, and the odds when upper X equals b become exp left-parenthesis beta 0 plus b beta 1 right-parenthesis. The odds ratio corresponding to an increase in X from a to b is

psi equals exp left-bracket left-parenthesis b minus a right-parenthesis beta 1 right-bracket equals left-bracket exp left-parenthesis beta 1 right-parenthesis right-bracket Superscript b minus a Baseline identical-to left-bracket exp left-parenthesis beta 1 right-parenthesis right-bracket Superscript c

Note that for any a and b such that c equals b minus a equals 1 comma psi equals exp left-parenthesis beta 1 right-parenthesis. So the odds ratio can be interpreted as the change in the odds for any increase of one unit in the corresponding risk factor. However, the change in odds for some amount other than one unit is often of greater interest. For example, a change of one pound in body weight might be too small to be considered important, while a change of 10 pounds might be more meaningful. The odds ratio for a change in X from a to b is estimated by raising the odds ratio estimate for a unit change in X to the power of c equals b minus a, as shown previously.

For a polytomous risk factor, the computation of odds ratios depends on how the risk factor is parameterized. For illustration, suppose that Race is a risk factor with four categories: White, Black, Hispanic, and Other.

For the effect parameterization scheme (PARAM=EFFECT) with White as the reference group, the design variables for Race are as follows.

Design Variables
Race upper X 1 upper X 2 upper X 3
Black 1      0 0
Hispanic 0 1 0
Other 0 0 1
White –1 –1 –1

The log odds for Black is

StartLayout 1st Row 1st Column g left-parenthesis Black right-parenthesis 2nd Column equals 3rd Column beta 0 plus beta 1 left-parenthesis upper X 1 equals 1 right-parenthesis plus beta 2 left-parenthesis upper X 2 equals 0 right-parenthesis plus beta 3 left-parenthesis upper X 3 equals 0 right-parenthesis 2nd Row 1st Column Blank 2nd Column equals 3rd Column beta 0 plus beta 1 EndLayout

The log odds for White is

StartLayout 1st Row 1st Column g left-parenthesis White right-parenthesis 2nd Column equals 3rd Column beta 0 plus beta 1 left-parenthesis upper X 1 equals negative 1 right-parenthesis plus beta 2 left-parenthesis upper X 2 equals negative 1 right-parenthesis plus beta 3 left-parenthesis upper X 3 equals negative 1 right-parenthesis right-parenthesis 2nd Row 1st Column Blank 2nd Column equals 3rd Column beta 0 minus beta 1 minus beta 2 minus beta 3 EndLayout

Therefore, the log odds ratio of Black versus White becomes

StartLayout 1st Row 1st Column log left-parenthesis psi left-parenthesis Black comma White right-parenthesis right-parenthesis 2nd Column equals 3rd Column g left-parenthesis Black right-parenthesis minus g left-parenthesis White right-parenthesis 2nd Row 1st Column Blank 2nd Column equals 3rd Column 2 beta 1 plus beta 2 plus beta 3 EndLayout

For the reference cell parameterization scheme (PARAM=REF) with White as the reference cell, the design variables for race are as follows.

Design Variables
Race upper X 1 upper X 2 upper X 3
Black 1       0 0
Hispanic 0 1 0
Other 0 0 1
White 0 0 0

The log odds ratio of Black versus White is given by

StartLayout 1st Row 1st Column log left-parenthesis psi left-parenthesis Black comma White right-parenthesis right-parenthesis 2nd Column equals 3rd Column g left-parenthesis Black right-parenthesis minus g left-parenthesis White right-parenthesis 2nd Row 1st Column Blank 2nd Column equals 3rd Column left-parenthesis beta 0 plus beta 1 left-parenthesis upper X 1 equals 1 right-parenthesis plus beta 2 left-parenthesis upper X 2 equals 0 right-parenthesis right-parenthesis plus beta 3 left-parenthesis upper X 3 equals 0 right-parenthesis right-parenthesis minus 3rd Row 1st Column Blank 2nd Column Blank 3rd Column left-parenthesis beta 0 plus beta 1 left-parenthesis upper X 1 equals 0 right-parenthesis plus beta 2 left-parenthesis upper X 2 equals 0 right-parenthesis plus beta 3 left-parenthesis upper X 3 equals 0 right-parenthesis right-parenthesis 4th Row 1st Column Blank 2nd Column equals 3rd Column beta 1 EndLayout

For the GLM parameterization scheme (PARAM=GLM), the design variables are as follows.

Design Variables
Race upper X 1 upper X 2 upper X 3 upper X 4
Black 1 0 0 0
Hispanic 0 1 0 0
Other 0 0 1 0
White 0 0 0 1

The log odds ratio of Black versus White is

StartLayout 1st Row 1st Column log left-parenthesis psi left-parenthesis Black comma White right-parenthesis right-parenthesis 2nd Column equals 3rd Column g left-parenthesis Black right-parenthesis minus g left-parenthesis White right-parenthesis 2nd Row 1st Column Blank 2nd Column equals 3rd Column left-parenthesis beta 0 plus beta 1 left-parenthesis upper X 1 equals 1 right-parenthesis plus beta 2 left-parenthesis upper X 2 equals 0 right-parenthesis plus beta 3 left-parenthesis upper X 3 equals 0 right-parenthesis plus beta 4 left-parenthesis upper X 4 equals 0 right-parenthesis right-parenthesis minus 3rd Row 1st Column Blank 2nd Column Blank 3rd Column left-parenthesis beta 0 plus beta 1 left-parenthesis upper X 1 equals 0 right-parenthesis plus beta 2 left-parenthesis upper X 2 equals 0 right-parenthesis plus beta 3 left-parenthesis upper X 3 equals 0 right-parenthesis plus beta 4 left-parenthesis upper X 4 equals 1 right-parenthesis right-parenthesis 4th Row 1st Column Blank 2nd Column equals 3rd Column beta 1 minus beta 4 EndLayout

Consider the hypothetical example of heart disease among race in Hosmer and Lemeshow (2000, p. 51). The entries in the following contingency table represent counts.

Race
Disease Status White Black Hispanic Other
Present 5 20 15 10
Absent 20 10 10 10

The computation of odds ratio of Black versus White for various parameterization schemes is shown in Table 9.

Table 9: Odds Ratio of Heart Disease Comparing Black to White

Parameter Estimates
PARAM= ModifyingAbove beta 1 With caret ModifyingAbove beta 2 With caret ModifyingAbove beta 3 With caret ModifyingAbove beta 4 With caret Odds Ratio Estimates
EFFECT 0.7651 0.4774 0.0719 exp left-parenthesis 2 times 0.7651 plus 0.4774 plus 0.0719 right-parenthesis equals 8
REF 2.0794 1.7917 1.3863 exp left-parenthesis 2.0794 right-parenthesis equals 8
GLM 2.0794 1.7917 1.3863 0.0000 exp left-parenthesis 2.0794 right-parenthesis equals 8


Since the log odds ratio (log left-parenthesis psi right-parenthesis) is a linear function of the parameters, the Wald confidence interval for log left-parenthesis psi right-parenthesis can be derived from the parameter estimates and the estimated covariance matrix. Confidence intervals for the odds ratios are obtained by exponentiating the corresponding confidence intervals for the log odd ratios. In the displayed output of PROC SURVEYLOGISTIC, the "Odds Ratio Estimates" table contains the odds ratio estimates and the corresponding t or Wald confidence intervals computed by using the covariance matrix in the section Variance Estimation. For continuous explanatory variables, these odds ratios correspond to a unit increase in the risk factors.

To customize odds ratios for specific units of change for a continuous risk factor, you can use the UNITS statement to specify a list of relevant units for each explanatory variable in the model. Estimates of these customized odds ratios are given in a separate table. Let left-parenthesis upper L Subscript j Baseline comma upper U Subscript j Baseline right-parenthesis be a confidence interval for log left-parenthesis psi right-parenthesis. The corresponding lower and upper confidence limits for the customized odds ratio exp left-parenthesis c beta Subscript j Baseline right-parenthesis are exp left-parenthesis c upper L Subscript j Baseline right-parenthesis and exp left-parenthesis c upper U Subscript j Baseline right-parenthesis, respectively, (for c greater-than 0); or exp left-parenthesis c upper U Subscript j Baseline right-parenthesis and exp left-parenthesis c upper L Subscript j Baseline right-parenthesis, respectively, (for c < 0). You use the CLODDS option in the MODEL statement to request confidence intervals for the odds ratios.

For a generalized logit model, odds ratios are computed similarly, except D odds ratios are computed for each effect, corresponding to the D logits in the model.

Rank Correlation of Observed Responses and Predicted Probabilities

The predicted mean score of an observation is the sum of the ordered values (shown in the "Response Profile" table) minus one, weighted by the corresponding predicted probabilities for that observation; that is, the predicted means score is sigma-summation Underscript d equals 1 Overscript upper D plus 1 Endscripts left-parenthesis d minus 1 right-parenthesis ModifyingAbove pi With caret Subscript d, where D + 1 is the number of response levels and ModifyingAbove pi With caret Subscript d is the predicted probability of the dth (ordered) response.

A pair of observations with different observed responses is said to be concordant if the observation with the lower-ordered response value has a lower predicted mean score than the observation with the higher-ordered response value. If the observation with the lower-ordered response value has a higher predicted mean score than the observation with the higher-ordered response value, then the pair is discordant. If the pair is neither concordant nor discordant, it is a tie. Enumeration of the total numbers of concordant and discordant pairs is carried out by categorizing the predicted mean score into intervals of length upper D slash 500 and accumulating the corresponding frequencies of observations.

Let N be the sum of observation frequencies in the data. Suppose there are a total of t pairs with different responses, n Subscript c of them are concordant, n Subscript d of them are discordant, and t minus n Subscript c Baseline minus n Subscript d of them are tied. PROC SURVEYLOGISTIC computes the following four indices of rank correlation for assessing the predictive ability of a model:

StartLayout 1st Row 1st Column Blank 2nd Column Blank 3rd Column c equals left-parenthesis n Subscript c Baseline plus 0.5 left-parenthesis t minus n Subscript c Baseline minus n Subscript d Baseline right-parenthesis right-parenthesis slash t 2nd Row 1st Column Blank 2nd Column Blank 3rd Column Somers prime upper D equals left-parenthesis n Subscript c Baseline minus n Subscript d Baseline right-parenthesis slash t 3rd Row 1st Column Blank 2nd Column Blank 3rd Column Goodman hyphen Kruskal gamma equals left-parenthesis n Subscript c Baseline minus n Subscript d Baseline right-parenthesis slash left-parenthesis n Subscript c Baseline plus n Subscript d Baseline right-parenthesis 4th Row 1st Column Blank 2nd Column Blank 3rd Column Kendall prime s tau hyphen a equals left-parenthesis n Subscript c Baseline minus n Subscript d Baseline right-parenthesis slash left-parenthesis 0.5 upper N left-parenthesis upper N minus 1 right-parenthesis right-parenthesis EndLayout

Note that c also gives an estimate of the area under the receiver operating characteristic (ROC) curve when the response is binary (Hanley and McNeil 1982).

For binary responses, the predicted mean score is equal to the predicted probability for Ordered Value 2.

Last updated: December 09, 2022