Hi,all:
I want to perform multiple correspondance analysis via MCA{FactoMineR}.
The data is in the attachment.
My code:
dat<-read.delim("e:\\mydata.txt",header=T)
MCA(dat,quanti.sup=7,quali.sup=1:6)
Error in `[.data.frame`(tab, , i) : undefined columns selected
My question:
Why does the error happen?
Many thanks.
Best.
origin size type home sex marital nmarit
Japanese Small Sporty Rent Female Married 1
Japanese Small Sporty Rent Female Married 1
American Large Family Rent Female Married 1
American Medium Family Rent Female Married 1
Japanese Medium Family Rent Female Married 1
Japanese Medium Family Rent Female Married 1
Japanese Medium Family Rent Female Married 1
Japanese Small Family Rent Female Married 1
Japanese Large Work Own Female Married 1
European Large Work Own Female Married 1
American Large Work Own Female Married 1
American Medium Work Own Female Married 1
American Small Work Own Female Married 1
Japanese Small Work Own Female Married 1
Japanese Small Work Own Female Married 1
Japanese Small Work Own Female Married 1
American Medium Sporty Own Female Married 1
European Medium Sporty Own Female Married 1
American Medium Sporty Own Female Married 1
American Medium Sporty Own Female Married 1
American Medium Sporty Own Female Married 1
American Medium Sporty Own Female Married 1
Japanese Small Sporty Own Female Married 1
Japanese Small Sporty Own Female Married 1
European Small Sporty Own Female Married 1
Japanese Small Sporty Own Female Married 1
Japanese Small Sporty Own Female Married 1
European Small Sporty Own Female Married 1
Japanese Small Sporty Own Female Married 1
Japanese Small Sporty Own Female Married 1
American Large Family Own Female Married 1
American Large Family Own Female Married 1
American Medium Family Own Female Married 1
Japanese Medium Family Own Female Married 1
European Medium Family Own Female Married 1
Japanese Medium Family Own Female Married 1
European Medium Family Own Female Married 1
Japanese Medium Family Own Female Married 1
Japanese Medium Family Own Female Married 1
American Medium Family Own Female Married 1
American Medium Family Own Female Married 1
Japanese Medium Family Own Female Married 1
American Medium Family Own Female Married 1
Japanese Medium Family Own Female Married 1
American Small Family Own Female Married 1
Japanese Small Family Own Female Married 1
American Small Family Own Female Married 1
Japanese Small Family Own Female Married 1
Japanese Small Family Own Female Married 1
American Small Family Own Female Married 1
European Small Family Rent Female Married 1
American Small Family Rent Female Married 1
Japanese Medium Work Rent Male Married 1
Japanese Medium Work Rent Male Married 1
Japanese Small Work Rent Male Married 1
American Small Sporty Rent Male Married 1
Japanese Small Sporty Rent Male Married 1
Japanese Small Sporty Rent Male Married 1
American Large Family Rent Male Married 1
Japanese Medium Family Rent Male Married 1
American Small Family Rent Male Married 1
Japanese Small Family Rent Male Married 1
Japanese Small Family Rent Male Married 1
American Small Family Rent Male Married 1
American Medium Work Own Male Married 1
American Small Work Own Male Married 1
Japanese Small Work Own Male Married 1
American Medium Sporty Own Male Married 1
Japanese Medium Sporty Own Male Married 1
Japanese Medium Sporty Own Male Married 1
European Medium Sporty Own Male Married 1
Japanese Medium Sporty Own Male Married 1
Japanese Medium Sporty Own Male Married 1
American Small Sporty Own Male Married 1
European Small Sporty Own Male Married 1
European Small Sporty Own Male Married 1
Japanese Small Sporty Own Male Married 1
European Small Sporty Own Male Married 1
Japanese Small Sporty Own Male Married 1
Japanese Small Sporty Own Male Married 1
Japanese Small Sporty Own Male Married 1
Japanese Medium Family Own Male Married 1
American Medium Family Own Male Married 1
American Medium Family Own Male Married 1
Japanese Medium Family Own Male Married 1
Japanese Small Family Own Male Married 1
Japanese Small Family Own Male Married 1
European Small Family Own Male Married 1
European Small Family Own Male Married 1
American Small Family Own Male Married 1
Japanese Small Family Own Male Married 1
Japanese Small Family Own Male Married 1
American Medium Sporty Rent Male Married 1
American Small Sporty Rent Male Married 1
American Medium Family Rent Male Married 1
American Large Work Own Male Married 1
Japanese Medium Work Own Male Married 1
American Large Family Own Male Married 1
Japanese Medium Family Own Male Married 1
Japanese Small Family Own Male Married 1
American Medium Family Own Female Married 1
Japanese Medium Sporty Own Female Single 3
Japanese Small Sporty Own Female Single 3
Japanese Medium Family Own Female Single 3
Japanese Medium Sporty Rent Female Single 3
European Medium Sporty Rent Female Single 3
American Medium Sporty Rent Female Single 3
American Medium Sporty Rent Female Single 3
Japanese Small Sporty Rent Female Single 3
Japanese Small Sporty Rent Female Single 3
Japanese Small Sporty Rent Female Single 3
Japanese Small Sporty Rent Female Single 3
Japanese Small Sporty Rent Female Single 3
European Small Sporty Rent Female Single 3
American Small Sporty Rent Female Single 3
American Small Sporty Rent Female Single 3
American Medium Family Rent Female Single 3
Japanese Medium Family Rent Female Single 3
American Medium Family Rent Female Single 3
Japanese Small Family Rent Female Single 3
Japanese Small Family Rent Female Single 3
Japanese Small Family Rent Female Single 3
European Large Work Own Female Single 3
Japanese Small Work Own Female Single 3
Japanese Small Work Own Female Single 3
American Medium Sporty Own Female Single 3
Japanese Medium Sporty Own Female Single 3
Japanese Medium Sporty Own Female Single 3
European Small Sporty Own Female Single 3
American Small Sporty Own Female Single 3
Japanese Small Sporty Own Female Single 3
European Small Sporty Own Female Single 3
American Medium Family Own Female Single 3
Japanese Medium Family Own Female Single 3
European Medium Family Own Female Single 3
Japanese Small Family Own Female Single 3
Japanese Small Sporty Rent Male Single 3
American Large Sporty Own Male Single 3
European Medium Sporty Own Male Single 3
Japanese Medium Sporty Own Male Single 3
European Medium Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
Japanese Small Family Own Male Single 3
American Large Work Rent Male Single 3
European Large Work Rent Male Single 3
Japanese Medium Work Rent Male Single 3
Japanese Small Work Rent Male Single 3
Japanese Small Work Rent Male Single 3
Japanese Small Work Rent Male Single 3
American Small Work Rent Male Single 3
Japanese Small Work Rent Male Single 3
Japanese Small Work Rent Male Single 3
Japanese Small Work Rent Male Single 3
Japanese Medium Sporty Rent Male Single 3
American Medium Sporty Rent Male Single 3
Japanese Medium Sporty Rent Male Single 3
Japanese Medium Sporty Rent Male Single 3
American Medium Sporty Rent Male Single 3
Japanese Small Sporty Rent Male Single 3
American Small Sporty Rent Male Single 3
Japanese Small Sporty Rent Male Single 3
Japanese Small Sporty Rent Male Single 3
Japanese Small Sporty Rent Male Single 3
Japanese Small Sporty Rent Male Single 3
Japanese Small Sporty Rent Male Single 3
European Small Sporty Rent Male Single 3
American Large Family Rent Male Single 3
American Large Family Rent Male Single 3
American Large Family Rent Male Single 3
Japanese Medium Family Rent Male Single 3
American Medium Family Rent Male Single 3
Japanese Medium Family Rent Male Single 3
American Medium Family Rent Male Single 3
Japanese Medium Family Rent Male Single 3
American Medium Family Rent Male Single 3
American Medium Family Rent Male Single 3
Japanese Small Family Rent Male Single 3
Japanese Small Family Rent Male Single 3
European Small Family Rent Male Single 3
Japanese Small Family Rent Male Single 3
Japanese Small Family Rent Male Single 3
American Large Work Own Male Single 3
American Medium Work Own Male Single 3
Japanese Small Work Own Male Single 3
American Small Work Own Male Single 3
European Medium Sporty Own Male Single 3
American Medium Sporty Own Male Single 3
American Medium Sporty Own Male Single 3
Japanese Medium Sporty Own Male Single 3
European Medium Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
American Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
European Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
European Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
Japanese Small Sporty Own Male Single 3
American Large Family Own Male Single 3
American Large Family Own Male Single 3
American Large Family Own Male Single 3
Japanese Medium Family Own Male Single 3
American Medium Family Own Male Single 3
Japanese Medium Family Own Male Single 3
Japanese Small Family Own Male Single 3
Japanese Small Family Own Male Single 3
American Small Sporty Rent Male Single 3
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.