楼主: peyzf
2109 2

[Stata高级班] 命令格式中的花括号含义 [推广有奖]

  • 1关注
  • 63粉丝

警督

大师

59%

还不是VIP/贵宾

-

威望
2
论坛币
566735 个
通用积分
200.4746
学术水平
218 点
热心指数
240 点
信用等级
140 点
经验
132065 点
帖子
12769
精华
0
在线时间
2976 小时
注册时间
2007-9-8
最后登录
2025-10-10

楼主
peyzf 发表于 2012-12-28 10:21:19 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
以winsor为例,

winsor varname [if exp] [in range] , generate(newvar)
                 { p(#) | h(#) } [ { highonly | lowonly } ]

【】表示可选,{}里面的内容是指?

谢谢。

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:generate winsor range wins ONLY generate

沙发
arlionn 在职认证  发表于 2012-12-30 10:10:02
二选一。你没有认真阅读帮助文件。


Options

    generate(newvar) specifies the name of the new variable.  It is a required option.

    p(#) specifies the fraction of the observations to be modified in each tail. p should be greater
        than 0 and less than 0.5 and imply a value of h as just below.

    h(#) specifies the number of the observations to be modified in each tail. h should be at least 1
        and less than half the number of non-missing observations.

    Just one of p() and h() should be specified.

    highonly and lowonly specify that Winsorizing should be one-sided, referring only to the tail with
        the highest values or only to the tail with the lowest values, respectively. These options
        should not be specified together
.

藤椅
peyzf 发表于 2012-12-30 15:25:49
thanks.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-26 11:10