I have some data that I want to replicate (to maintain realistic relationships between the variables). I have copied the script that Ryne posted for everyone's convenience, and I was able to generate one data set. However the data I want does contain factors (unordered?), so it seems to me I need to use the second half of the script to retain the information that they have.
So, I have been trying to run that portion of the script, which I was able to do without errors, though it's not actually working (no data is generated). Does anyone have some suggestions about how I should modify the script (attached) to replicate the information I'm after?