REGPARTCORR—Computing regression partial correlations

Use this forum to post complete RATS "procedures". Please be sure to include instructions on using the procedure and detailed references where applicable.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

REGPARTCORR—Computing regression partial correlations

Unread post by TomDoan »

@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


Last bumped by TomDoan on Wed Sep 23, 2015 11:00 am.
yelena
Posts: 31
Joined: Wed Sep 09, 2015 8:49 pm

@RegPartCorr Procedure. How to extract Std. Coefficient

Unread post by yelena »

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
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: @RegPartCorr Procedure. How to extract Std. Coefficient

Unread post by TomDoan »

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.
Post Reply