I have a similar question like this:
Weighted sampling with 2 vectors
I now have a dataset which contains 1000 observations and 4 columns for each observation. I want to sample 200 observations from the original dataset with replacement.
But the PROBLEM is: I need to assign different probability vector for each column. For example, for the first column. I want equal probability c(0.001,0.001,0.001,0.001...). For the second column, I want something different like c(0.0005,0.0002,......). Of course, each probability vector sum up to 1.
I know sample can do with one vector. But I am not sure about other commands. Please HELP me!
Thank you in advance! Colamonkey