Learn R Programming

TripleR (version 1.5.4)

selfCor: partial correlation

Description

Performs partial correlations between x and y, controlled for z.

Usage

selfCor(x, digits=3, measure=NA)

Arguments

x

An RR object

digits

Digits to which values are rounded in the output

measure

Either "behavior" or "percetion". Only affects labeling of output; if NA, the current setting of RR.style is taken as default.

Value

A data frame with correlation coefficients and p values.

Details

Prints correlations between self ratings (if present in the round robin matrices) and SRA effects. In case of multiple groups, partial correlations are printed (controlled for group membership). The output of selfCor is also printed in the standard RR-ouput.

See Also

RR, getEffects

Examples

Run this code
# NOT RUN {
data(multiGroup)

RR.style("p")
# a single group
RR1 <- RR(ex~perceiver.id*target.id, data=multiGroup[multiGroup$group.id=="2", ], na.rm=TRUE)
selfCor(RR1)

# multiple groups
RR2 <- RR(ex~perceiver.id*target.id|group.id, data=multiGroup, na.rm=TRUE)
selfCor(RR2)

# }

Run the code above in your browser using DataLab