Dear Professor,
Thanks for the reply. So, not exactly. Given a regression shape~size*genus for example, the coefficients are, i) the intercept for the first group (for size=0), ii) size (slope of the first group), iii) group2, iv) group3 - intercept differences for groups 2 and 3 from group 1 - and size:group2, vi) size:group3 their slopes. Then, in order to acquire the regression scores, we use this
f <- as.matrix(fit$LM$gls.fitted)
Pcov <- RRPP:::Cov.proj(as.matrix(fit$LM$Cov))
xc <- size_extant
X <- as.matrix(cbind(xc, Pcov %*% fit$LM$X))
b <- as.matrix(lm.fit(X, f)$coefficients)[1, ]
regscores_extant<- as.numeric(RRPP:::center((fit$LM$Y) %*% b %*% sqrt(solve(crossprod(b)))))
I was asking, given these calculations, "b" the allometric vector, if it would make sense to apply this:
regscores_fossils<- as.numeric(RRPP:::center((fossil_shape_coords) %*% b %*% sqrt(solve(crossprod(b))))), for the same "b" that describes the extant taxa.
I definitely miss something, for that I am sure, but does the actual reasoning make sense? The same could be applied to an OLS model
Thank you in advance!
Best,
Stelios