Thank you for your response. And let me clarify my goal. I need to use complex survey weights (e.g., strata, cluster, weight) in my analysis so as to avoid bias. However, a lot of machine learning functions do not support complex survey design, so I am looking for a way to convert the complex survey dataset into a regular dataset according to the complex survey design (i.e., weights). In this case, we could directly use regular methods but just input the converted dataset for further analysis. Did I make sense? Look forward to further help. Thanks!
... View more