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

Abierto
#1,088 1 comentario 0 reacciones 1 asignado Ver en GitHub

@mitzimorris ya está trabajando en esto.

Desde el 28/3/2022.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

Lenguaje dominante
C++
Estrellas
240
Forks
105
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de stan-dev/cmdstan

Todos los issues de stan-dev/cmdstan

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.