Hello,
I'm trying to carry out some multivariate analyses on my species morphological variation data which consists of both continuous (leaf length etc) and categorical (seed type etc) data types. I have imported my data which looks like this:
|
Leafindumentumdensity |
Auriclespresent |
Tubularstamencurve |
Centralfloretseedtype |
Raystamencurve |
Leaflength |
Cleftlength |
Leafwidth |
Headwidth |
Tubularfloretcorollalength |
Tubularfloretstamenlength |
Lengthofhighestbract |
Rayfloretlength |
Rayfloretlimbwidth |
Rayfloretlimblength |
Ray:stamenlength |
| FA295o1 |
dense |
No |
strong |
A |
strong |
0.919078 |
0.20412 |
1.0086 |
0.681241 |
0.892095 |
0.041393 |
0.322219 |
0.880814 |
0.079181 |
0.740363 |
0.146128036 |
| FA295o2 |
dense |
No |
strong |
A |
slight |
1.033424 |
0.342423 |
0.94939 |
0.681241 |
0.863323 |
0 |
0.278754 |
0.94939 |
0.380211 |
0.755875 |
0.113943352 |
| FA295o3 |
dense |
No |
strong |
A |
slight |
0.939519 |
0.20412 |
1.0086 |
0.50515 |
0.857332 |
0.079181 |
0.146128 |
0.939519 |
0.322219 |
0.799341 |
0.079181246 |
| FA296o1 |
dense |
Yes |
slight |
A |
slight |
1.10721 |
0.462398 |
1.178977 |
0.612784 |
0.763428 |
0.041393 |
0.079181 |
0.770852 |
0.230449 |
0.623249 |
0.079181246 |
I have a total of 16 variables, the first 5 are categorical and final 11 are continuous.
I used the following to start with :
res=MFA(azoresall1,group=c(5,11,1),type=c(rep("n",5),rep("s",11)),ncp=5,name.group=c("cat","cont"))
And I receive this error message:
Error in MFA(azoresall1, group = c(5, 11), type = c(rep("n", 5), rep("s", :
not convenient group definition
I'm not sure what I need to do. I have also tried defining it as "c" but it does not work.
I have also tried to add supplementary information to this with an extra column of data (ssp.) and have tried:
res=MFA(azoresall1,group=c(5,11,1),type=c(rep("n",5),rep("c",11),"n"),ncp=5,name.group=c("cat","cont","ssp"),num.group.sup=17)
However, with this I receive the same error message.
Thank you for your help and sorry if this seems obvious, I'm new to R!