help for

pcorrmat-------------------------------------------------------------------------------

Title

pcorrmat-- Matrix of partial correlation coefficients controlled for a fixed set of covariates

Syntax

pcorrmatvarlist1[if] [in] [weight],part(varlist2)[sig]

varlist1must contain at least 2 variables.varlist1andvarlist2may contain time-series operators; see tsvarlist.bymay be used withpcorrmat; seeby.aweights andfweights are allowed; see weight.

Description

pcorrmatdisplays a matrix of partial correlation coefficients ofvarlist1with each other, while holding the variable(s) invarlist2constant. Only observations with non-missing values onallvariables invarlist1andvarlist2are used. So each partial correlation in the matrix refers to the same sample.

Options

part(varlist2)Specifies the variable or variables which will be held constant.

sigSpecifies that p-values are also displayed.

Saved results+-----------------+ ----+ always returned +--------------------------------------------------

r(pcorr)Matrix of partial correlations.

r(N)Number of observations with non-missing values on all variables invarlist1andvarlist2.

r(df)Number of degrees of freedom.+------------------+ ----+ if sig specified +-------------------------------------------------

r(t)Matrix of t statistics.

Example

. pcorrmat price mpg weight, part(foreign)

. pcorrmat price mpg weight, part(foreign) sig

AuthorMaarten L. Buis Vrije Universiteit Amsterdam Department of Social Research Methodology m.buis@fsw.vu.nl

Also seeManual:

[R] pcorrOnline:

correlate,spearman,pcorr2(if installed),partcorr(if installed)