Hi,
I try to bootstrap random samples (with replacement) for my K-means cluster analysis.
My dataset contains 110 samples and 4 variables.
I use the following syntax for my cluster analysis:
cluster means var1 var2 var3 var4, k(2) measure(L2) name(clustervar) start(krandom)
First I want to draw a new dataset (of the same size as the original) by resampling the original dataset with replacement, and then cluster the new dataset - this i will repeat several times.
Should I use the bsample or bootstrap code?
Is there an extensive description of how to write the syntax? I found the STATA bootstrap and bsample documents helpful but not sufficient.
Thank you
I try to bootstrap random samples (with replacement) for my K-means cluster analysis.
My dataset contains 110 samples and 4 variables.
I use the following syntax for my cluster analysis:
cluster means var1 var2 var3 var4, k(2) measure(L2) name(clustervar) start(krandom)
First I want to draw a new dataset (of the same size as the original) by resampling the original dataset with replacement, and then cluster the new dataset - this i will repeat several times.
Should I use the bsample or bootstrap code?
Is there an extensive description of how to write the syntax? I found the STATA bootstrap and bsample documents helpful but not sufficient.
Thank you
Comment