Hi Statalist experts,
Suppose I have data on a population of N subjects, each has X1-X5 and and variable p specifying its sampling probability. Each subject has an unequal probability of being selected. Supposed I would like to select a sample of size n taking into account the sampling probability, how would I do that? I am looking for a function that parallels the "sample(x, size, replace = , prob = )" function in R.
Thank you in advance!
Best,
Eva
Related Posts with How to sample with unequal probability in a given population
Random effect logistic regressionHi everyone I have recently started to use Stata, and confused about how I should interpret the res…
Merging 2 datasets on overlapping period of timeI have a question related to merging two datasets on an overlapping period of time. I have found som…
checking the imputed valuesHi all, I have watched a video by chuck huber about multiple imputation. i want to know how to check…
Stata 15.1 close after exceeding the limit of scrollbufsizeI have noticed that the Stata suddenly close and loosing my unsaved do files. I think it is because …
Seemingly unrelated regression (sureg) & Testing for significant differences of a coefficient across more than two equationsI will use sureg (seemingly unrelated regression) to analyze my data. I need to test my coefficients…
Subscribe to:
Post Comments (Atom)
0 Response to How to sample with unequal probability in a given population
Post a Comment