楼主: lindishan
16354 7

[回归分析求助] 相关性分析结果(pwcorr)如何设置保留三位小数? [推广有奖]

  • 2关注
  • 0粉丝

博士生

18%

还不是VIP/贵宾

-

威望
0
论坛币
621 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
271 点
帖子
94
精华
0
在线时间
159 小时
注册时间
2012-3-21
最后登录
2021-10-7

楼主
lindishan 在职认证  学生认证  发表于 2013-7-21 10:19:48 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
如题~急,求助
二维码

扫码加我 拉你入群

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

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

关键词:pwcorr 相关性分析 Corr 相关性 PWC 相关性 如何

沙发
chenxiaoliang22 在职认证  发表于 2013-7-21 15:55:45
format设置固定格式,比如%9.3f即可。
具体解释:
The %f format

    In %w.df, w is the total output width, including sign and decimal point,
    and d is the number of digits to appear to the right of the decimal
    point.  The result is right-justified.

    The number 5.139 in %12.2f format displays as

        ----+----1--
                5.14
        

    When d==0, the decimal point is not displayed.  The number 5.14 in %12.0f
    format displays as

        ----+----1--
                   5

    %-w.df works the same way, except that the output is left-justified in
    the field.  The number 5.139 in %-12.2f displays as

        ----+----1--
        5.14

详见官网解释:http://www.stata.com/help.cgi?format#fformat
已有 1 人评分论坛币 收起 理由
admin_kefu + 100 热心帮助其他会员

总评分: 论坛币 + 100   查看全部评分

坚持下去!

藤椅
runman 发表于 2016-7-8 14:18:04
请问最后怎么解决的?

板凳
spsssas 发表于 2018-8-7 15:03:41
同问同问同问

报纸
5589241558 发表于 2020-7-5 18:26:02
logout, save("Results/table3_Var_corr") dec(3) excel replace:  pwcorr_a $vvv

地板
huangxin1098 发表于 2020-12-22 21:30:53
corr2docx Y X1 X2  using corr2.docx, replace star fmt(%9.3f)

7
宛如青空 发表于 2021-5-28 10:56:34
设置dec(4)依然保留的是3位小数

8
zdlspace 学生认证  发表于 2021-5-28 13:24:11
宛如青空 发表于 2021-5-28 10:56
设置dec(4)依然保留的是3位小数
地板的方案最简洁

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-1 12:30