`stansummary` save to CSV doesn't respect default significant figures

Đang mở
#1,088 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@mitzimorris đang làm issue này rồi.

Từ ngày 28/3/2022.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug
Summary:

Utility stansummary use of sig figs combined with scientific notation results in only 2 digit's worth of precision.

Description:

cf: https://github.com/stan-dev/cmdstanpy/issues/550#issuecomment-1081108389

It seems that the CSV output doesn't respect the default sig-figs that the docs cite.

without specifying -s:

name,Mean,MCSE,StdDev,5%,50%,95%,N_Eff,N_Eff/s,R_hat
"lp__",-7.29137,0.0194958,0.751762,-8.82028,-6.99659,-6.74977,1486.9,19062.8,0.999907
with -s 2

name,Mean,MCSE,StdDev,5%,50%,95%,N_Eff,N_Eff/s,R_hat
"lp__",-7.3,0.019,0.75,-8.8,-7,-6.7,1.5e+03,1.9e+04,1
I should note that the values displayed in stdout do seem to have a default value of 2 significant figures.

Reproducible Steps:

Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.

If you have a reproducible example, please include it.

Current Output:

The current output. Knowing what is the current behavior is useful.

Expected Output:

Describe what you expect the output to be. Knowing the correct behavior is also very useful.

Additional Information:

Provide any additional information here.

Current Version:

v2.29.2

Ngôn ngữ chính
C++
Star
240
Fork
105
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stan-dev/cmdstan

Tất cả issue của stan-dev/cmdstan

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.