How to split the data into random samples of equal size (approx. 50%)?
I have a data sample and want to perform factor analysis. First I want to use randomly selected 50% of the sample for a principal component analysis, and then the other 50% for a confirmatory analysis, but I'm not sure how I can split the sample and then use the other half later on.
Please help :) Thanks!