- 阅读权限
- 255
- 威望
- 0 级
- 论坛币
- 8845 个
- 通用积分
- 86.0000
- 学术水平
- 0 点
- 热心指数
- 0 点
- 信用等级
- 0 点
- 经验
- 106 点
- 帖子
- 54
- 精华
- 0
- 在线时间
- 543 小时
- 注册时间
- 2015-6-14
- 最后登录
- 2024-10-25
博士生
还不是VIP/贵宾
- 威望
- 0 级
- 论坛币
- 8845 个
- 通用积分
- 86.0000
- 学术水平
- 0 点
- 热心指数
- 0 点
- 信用等级
- 0 点
- 经验
- 106 点
- 帖子
- 54
- 精华
- 0
- 在线时间
- 543 小时
- 注册时间
- 2015-6-14
- 最后登录
- 2024-10-25
| 开心 2024-10-25 13:26:57 |
---|
签到天数: 1246 天 连续签到: 1 天 [LV.10]以坛为家III
|
100论坛币
想请问下,怎么在stata中用boxcox将一列本不是正态分布的数据转化为正态分布的?
做了命令如下:“boxcox absx2”(absx2为变量值),得到的数据结果如下:
. boxcox absx2
Fitting comparison model
Iteration 0: log likelihood = -939.70641
Iteration 1: log likelihood = -146.16592
Iteration 2: log likelihood = -128.71365
Iteration 3: log likelihood = -128.34386
Iteration 4: log likelihood = -128.34366
Iteration 5: log likelihood = -128.34366
Fitting full model
Iteration 0: log likelihood = -939.70641
Iteration 1: log likelihood = -146.16592
Iteration 2: log likelihood = -128.71365
Iteration 3: log likelihood = -128.34386
Iteration 4: log likelihood = -128.34366
Iteration 5: log likelihood = -128.34366
Number of obs = 204
LR chi2(0) = 0.00
Log likelihood = -128.34366 Prob > chi2 = .
------------------------------------------------------------------------------
absx2 | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
/theta | -.0298817 .0259776 -1.15 0.250 -.0807969 .0210335
------------------------------------------------------------------------------
Estimates of scale-variant parameters
----------------------------
| Coef.
-------------+--------------
Notrans |
_cons | -1.316571
-------------+--------------
/sigma | 1.650568
----------------------------
---------------------------------------------------------
Test Restricted LR statistic P-value
H0: log likelihood chi2 Prob > chi2
---------------------------------------------------------
theta = -1 -614.50175 972.32 0.000
theta = 0 -129.01617 1.35 0.246
theta = 1 -939.70641 1622.73 0.000
---------------------------------------------------------
|
|