geomorphR/geomorph

procD.lm: The number of observations in the input and output do not match.

Closed this issue · 3 comments

Hi,

I'm running a simple model with procD.lm, and it works well. My input data is in the form of a geomorph.data.frame, with a numeric matrix Y of 908x8 and a factor of the same length, 908. After running the model, e.g.,

fit1 <- procD.lm(Y ~ SP * SEX, data = GDATA, iter = 4999 )

Cheking:

fit1$LM$n
[1] 705

Why there is a mismatch between the input data and the model data?
Thanks in advance,

Ale

Hi Dean,
The problem was on my data. Some NAs were introduced into the factor while curating the data, so interactions with NAs were excluded from the analysis. Thank you for the quick response!

Kind regards,
Ale