normalmixEM from the mitools package cannot handle miture modeling on vectors with a LOT of NA's
eg.:
When fitting 2 normals 50% (+1) should be present
When fitting 3 normals 66% (+1) should be present
However the currect strategy is t allow massive NAs in pheno2geno... to solve this we can simply find all the na's, and remove them before modeling. (assuming the data is in V)
idx <- is.na(v)
v <- v[idx]
#Call normalmixEM
Fix the resulting output using the idx vector
normalmixEM from the mitools package cannot handle miture modeling on vectors with a LOT of NA's
eg.: When fitting 2 normals 50% (+1) should be present When fitting 3 normals 66% (+1) should be present
However the currect strategy is t allow massive NAs in pheno2geno... to solve this we can simply find all the na's, and remove them before modeling. (assuming the data is in V)