@REGPARTCORR is a regression post-processor which computes and prints the partial correlations between the regressors and the dependent variable. It must be preceded by a LINREG instruction.
Detailed Description
REGPARTCORR—Computing regression partial correlations
REGPARTCORR—Computing regression partial correlations
Last bumped by TomDoan on Wed Sep 23, 2015 11:00 am.
@RegPartCorr Procedure. How to extract Std. Coefficient
Dear Tom,
Do you know how to extract a certain standardized coefficient(say, as %beta(1) in LINREG) from the third column in @RegPartCorr procedure?
Thank you very much.
Yelena
Do you know how to extract a certain standardized coefficient(say, as %beta(1) in LINREG) from the third column in @RegPartCorr procedure?
Thank you very much.
Yelena
Re: @RegPartCorr Procedure. How to extract Std. Coefficient
From a report itself, you could do a copy/paste or export into a spreadsheet. However, if you're just interested in computing the standardized coefficients, that's really a fairly simple process---most of the @REGPARTCORR procedure is for formatting output, not doing the calculation. After you run a regression do
cmom(corr,lastreg,depvar)
compute ss=%sweeptop(%cmom,%nreg)
then the standardized coefficients are in the first %nreg rows of the final column of ss.
cmom(corr,lastreg,depvar)
compute ss=%sweeptop(%cmom,%nreg)
then the standardized coefficients are in the first %nreg rows of the final column of ss.