楼主: yiliwu79
6161 5

stata里如何实现boxcox转换并做出散点图 [推广有奖]

  • 0关注
  • 0粉丝

小学生

21%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
193 点
帖子
3
精华
0
在线时间
4 小时
注册时间
2009-8-21
最后登录
2017-9-28

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
各位大侠,用stata做boxcox转换,遇到麻烦了,我相对y进行boxcox转换后,做出转换后的值与x的散点图,哪位高手能把命令或程序写给我呢?万分感谢!
二维码

扫码加我 拉你入群

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

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

关键词:boxcox Stata 如何实现 tata Cox 散点图 如何

沙发
nkunku 发表于 2012-5-8 08:51:35 |只看作者 |坛友微信交流群
如果不是非要用Stata不可,那么Minitab做Boxcox是再好不过的啦

使用道具

藤椅
yiliwu79 发表于 2012-5-8 13:33:49 |只看作者 |坛友微信交流群
下载了minitab,试了一下,好像成功了,非常感谢

使用道具

板凳
蓝色 发表于 2012-5-8 13:59:24 |只看作者 |坛友微信交流群
不知道是不是下面的这个命令

Title

    [R] lnskew0 -- Find zero-skewness log or Box-Cox transform


Syntax

    Zero-skewness log transform

        lnskew0 newvar = exp [if] [in] [, options]


    Zero-skewness Box-Cox transform

        bcskew0 newvar = exp [if] [in] [, options]


    options       Description
    -----------------------------------------------------------------------------------------
    Main
      delta(#)    increment for derivative of skewness function; default is delta(0.02) for
                    lnskew0 and delta(0.01) for bcskew0
      zero(#)     value for determining convergence; default is zero(0.001)
      level(#)    set confidence level; default is level(95)
    -----------------------------------------------------------------------------------------


Menu

    lnskew0

        Data > Create or change data > Other variable-creation commands > Zero-skewness log
            transform

    bcskew0

        Data > Create or change data > Other variable-creation commands > Box-Cox transform


Description

    lnskew0 creates newvar = ln(+/-exp - k), choosing k and the sign of exp so that the
    skewness of newvar is zero.

    bcskew0 creates newvar = (exp^L - 1)/L, the Box-Cox power transformation (Box and Cox
    1964), choosing L so that the skewness of newvar is zero.  exp must be strictly positive.
    Also see [R] boxcox for maximum likelihood estimation of L.


使用道具

报纸
sungmoo 发表于 2012-5-8 19:34:26 |只看作者 |坛友微信交流群
boxcox y x
mat b=e(b)
mat b=b[1,"theta:_cons"]
g yb=(y^det(b)-1)/det(b)
sc yb x

使用道具

地板
tonytiandi 发表于 2012-11-6 21:18:21 |只看作者 |坛友微信交流群
sungmoo 发表于 2012-5-8 19:34
boxcox y x
mat b=e(b)
mat b=b[1,"theta:_cons"]
非常感谢!

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-15 06:52