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

in proc quantreg, what is the difference between the p-values in the quantile parameter estimate tables and the p-values from the "TEST" statement tables for a single variable?

 

my code is:

proc quantreg data= have alpha=0.1 ci=resampling algorithm=interior(tolerance=5.e-4);
class block sex race;
model ln_iss = month age_v2 block sex race/ quantile= 0.1 0.3 0.5 0.7 0.9 ;
test block / wald lr qinteract;
test sex / wald lr qinteract;
test age_v2 / wald lr qinteract;
test race / wald lr qinteract;
format block blockfmt. ;
run;

 

each quantile  parameter estimate table gives a p-value for each co-variate. a second p-value for each variable is output from the "test" statement. are both testing the same thing?

 

from the documentation for sas 9.4:

Three tests are available in the QUANTREG procedure for the linear null hypothesis that beta2=0 at the quantile tau.

 

what is the null hypothesis in the parameter estimate tables? are these different statistical test of the same null hypothesis?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

> each quantile parameter estimate table gives a p-value for each co-variate. a second p-value for each variable is output from the "test" statement. are both testing the same thing?

 

Yes, both are testing the null hypothesis that the regression coefficient for the given quantile is zero. You will get one p-value for each coefficient.

 

> what is the null hypothesis in the parameter estimate tables? are these different statistical test of the same null hypothesis?

Yes, different tests. Since you specified CI=RESAMPLING, the p-values in the ParameterEstimates table are estimated by using a resampling (bootstrap) method. See the doc for the CI= option.

For the TEST statements, the tables show the estimates from the Wald and LR tests, as described in the doc. 

 

The QINTERACT option performs a different test. The table titled "Test Results Equal Coefficients
Across Quantiles" shows the test statistics for the test that the coefficients do not depend on the quantiles. In other words, the regression line for each quantile has a common slope.

View solution in original post

2 REPLIES 2
Rick_SAS
SAS Super FREQ

> each quantile parameter estimate table gives a p-value for each co-variate. a second p-value for each variable is output from the "test" statement. are both testing the same thing?

 

Yes, both are testing the null hypothesis that the regression coefficient for the given quantile is zero. You will get one p-value for each coefficient.

 

> what is the null hypothesis in the parameter estimate tables? are these different statistical test of the same null hypothesis?

Yes, different tests. Since you specified CI=RESAMPLING, the p-values in the ParameterEstimates table are estimated by using a resampling (bootstrap) method. See the doc for the CI= option.

For the TEST statements, the tables show the estimates from the Wald and LR tests, as described in the doc. 

 

The QINTERACT option performs a different test. The table titled "Test Results Equal Coefficients
Across Quantiles" shows the test statistics for the test that the coefficients do not depend on the quantiles. In other words, the regression line for each quantile has a common slope.

sparsityBlues
Calcite | Level 5
super, thanks--i'm just learning quantreg so just wanted to be sure i was interpreting everything correctly.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 955 views
  • 1 like
  • 2 in conversation