**[R] pcorr** -- Partial and semipartial correlation coefficients

__Syntax__

**pcorr** *varname* *varlist* [*if*] [*in*] [*weight*]

*varlist* may contain factor variables; see fvvarlist.
*varname* and *varlist* may contain time-series operators; see tsvarlist.
**by** is allowed; see **[D] by**.
**aweight**s and **fweight**s are allowed; see weight.

__Menu__

**Statistics > Summaries, tables, and tests >** **Summary and descriptive**
**statistics > Partial correlations**

__Description__

**pcorr** displays the partial and semipartial correlation coefficient of a
specified variable with each variable in a varlist after removing the
effects of all other variables in the varlist. The squared correlations
and corresponding significance are also reported.

__Example__

**. sysuse auto**
**. pcorr price mpg weight foreign**

__Stored results__

**pcorr** stores the following in **r()**:

Scalars
**r(N)** number of observations
**r(df)** degrees of freedom

Matrices
**r(p_corr)** partial correlation coefficient vector
**r(sp_corr)** semipartial correlation coefficient vector