Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从我的原始数据集中创建一个 100 人的合成样本。为此,我使用包synthpop。但是我的原始数据集已经包含权重(变量 =“权重”)。如何包含这些,以便合成数据集具有与原始数据集的加权值相同的边际总和?
synth.obj <- syn(data, k=100, seed = 1234, m=5)