r - Missing values are not allowed in subscripted assignments of data frames in MCMCglmm package -
i using mcmcglmm package generalized linear models. here codes , final_kirc_met_act includes pathway scores.
> g<-factor(g, levels=c("male","female"), labels=c(0,1)) > data<-cbind(final_kirc_met_act, g) > data2<-as.data.frame(data) > head(data2) m00001_c00022 m00002_c00022 m00003_c05345 m00004_r02739 m00006_c00199 m00007_c00117 m00009_r00342,r00361 tcga-6d-aa2e 0.0001438301 0.004029765 0.0002290721 0.0004104972 0.02246794 0.1467008 1.703306e-04 tcga-a3-3306 0.0001619469 0.003969637 0.0001457640 0.0003494476 0.02197964 0.1260309 9.222817e-05 tcga-a3-3307 0.0001403204 0.003569992 0.0002373946 0.0003091625 0.02021713 0.1249811 8.646219e-05 tcga-a3-3308 0.0001105221 0.002883832 0.0001282293 0.0003436197 0.02256994 0.1214749 9.128686e-05 tcga-a3-3311 0.0001468475 0.003847826 0.0001714674 0.0003078584 0.02247165 0.1173292 9.803733e-05 tcga-a3-3313 0.0001223408 0.003363544 0.0002314604 0.0002821620 0.01696295 0.1273991 1.616942e-04 ... when applied mcmcglmm error below:
> model<-mcmcglmm(final_kirc_met_act~g,data=data2) error in `[<-.data.frame`(`*tmp*`, , response.names, value = c(0.000143830145988399, : missing values not allowed in subscripted assignments of data frames but when control data there no missing values
> table(is.na(final_kirc_met_act)) false 50496 > table(is.na(g)) false 526 table(is.na(data2)) false 51022 can me?
Comments
Post a Comment