Displaying 1 result from an estimated 1 matches for "p1_x".
Did you mean:
c1_x
2008 Mar 06
0
Help with colinearity problem in multiple linear regression
...ult", "UrbanPop", "Rape")
# Split the data into partitions to be calculated separately
# In the real case the full data would have been too large and
# each instance would have received just a chunk of data.
P1 = P[1:25,]
P2 = P[26:50]
# Partition 1 - calculated on host 1
P1_X = as.matrix(cbind(1, P1[,c("UrbanPop", "Assault", "Rape",
"Introduced")]))
P1_A = t(P1_X) %*% P1_X
P1_b = t(P1_X) %*% P1[,"Murder"]
# Partition 2 - calculated on host 2
P2_X = as.matrix(cbind(1, P2[,c("UrbanPop", "Assault", &qu...