Displaying 1 result from an estimated 1 matches for "wsas01".
Did you mean:
ws001
2013 May 08
0
PPCOR: Semipartial Correlation & Regression weights
...tically identical to the semipartial correlations between x1 and
Y, given x2 and x3.
However, I do not obtain identical results, so apparently I'm doing
something wrong in R.
Data preparation:
data<-read.csv("file.csv", head=T)
data <- subset(data, select=c(age,s1,s2,s3,s5,s10,WSAS01))
data <- na.omit(data1)
In the following example, I am interested in the regression
coefficient/semi-partial correlation of s1(x) and WSAS01 (y).
Regression:
m1 <- lm(WSAS01 ~ s1+s2+s3+s5+s10+age, data=data)
summary(m1)
regression coefficient s1: 0.091
Semipartial Correlation:
library(ppc...