Dear all,
i have a dataset of about 400 records , with a variable that has  two levels 40 bad and 360 good among other variables,how do i come up  with10 random samples that have the composition of as the main sample  but maintaining the 40 bad 360 good with replacement, i recently discovered that my random samples generated dont maintain the ratio. My code is as  :

mysample <- final[sample(1:nrow(final), 400,replace=TRUE),] 

does not give me the ratio of 40 bad and 360 good can anyone give me some pointers please?



Thanks,
Taby




	[[alternative HTML version deleted]]

