用SAS中的参数采样
我有一个大型数据集数据集,其中包含20列,而列“ LTV”包含分类高,低和中间和中等的“票务”,以及包含值的“票务”。我需要从数据集中提供500个样本,其中“ LTV” 70%低,20%中等,低点低和252.00和300.00之间。我该如何在SAS中得到这个?
I have a large dataset dataset with 20 columns, and the columns "ltv", that contains the classification high, low and medium and "ticket" that contains values. I need 500 samples from dataset with "ltv" 70% low, 20% medium, 10% low and "ticket" between 252.00 and 300.00. How can I get this in SAS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您将在LTV变量上使用PROC监视和分层。
您可以使用Samprate选项指定不同的采样率。
例子:
You would use PROC SURVEYSELECT with stratification on the ltv variable.
You can specify the differing sampling rate with the samprate option.
Example: