Hey I am working with a choice experiment dataset.
I want to split the data (e.g., 80/20) to be able to run prediction and accuracy tests.
The problem is that I can't just split the data "anyway" because I have to keep my alternatives from the same choice set together (in my case a choice set has 2 alternatives). When I split the data I get an error (see below) that I think means I have split right down the middle of a choice set.
Tips? Can I specify a particular line to split at?
The error I am getting:
Error in if (abs(x - oldx) < ftol) { :
missing value where TRUE/FALSE needed