Hi,
I am trying to use procD.lm() and see the performance of several nested models
I have 6 independent variables: populations, sex, haplotypes, genotypes, climate PC1 and climate PC2.
When I fit each independent variable separately or some combination of them(e.g. Shape~pop, Shape~climate PC1 or Shape~sex*climate PC1*climate PC2 etc), the function works just fine.
However, some models (e.g. Shape~populations*climate PC1 or Shape~sex*haplotypes*genotypes*climate PC1*climate PC2 etc), the function would give me an error message:
Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x), :
'data' must be of a vector type, was 'NULL'
Since models with single independent variable works just fine, I don't think the issue lies in the input matrix. I could be wrong.
Please let me know if you have a thought on this issue.
Thank you very much!
Dana