Hi everyone,
I’m trying to produce the same table output using -table- in Stata 16 and 17/18.
In Stata 16, -table, miss- adds dots in the cells with no data. For example,
In Stata 17/18, -table, miss- shows potential missing values in variables, but not in the cell with the cross-tabulation. In the cells, we see now blanks instead of dots. For example,
Then, I wonder whether is it possible to replace the blanks with other characters when running -table- in Stata 17/18.
Thank you!
I’m trying to produce the same table output using -table- in Stata 16 and 17/18.
In Stata 16, -table, miss- adds dots in the cells with no data. For example,
Code:
sysuse auto, clear qui summ price, d gen Clase = price >= r(p50) label define costo 0 Barato 1 Caro label values Clase costo version 16: bys Clase: table turn rep78 foreign if rep78>= 3, c(mean length) f(%5.0f) center miss --------------------------------------------------------------------------- -> Clase = Barato ------------------------------------------------ Turn | Car origin and Repair record 1978 circle | --- Domestic --- ---- Foreign --- (ft.) | 3 4 5 3 4 5 ----------+------------------------------------- 31 | 193 . . . . . 32 | . . . . . 165 33 | . 147 . . 154 . 34 | 163 . . 142 149 . 35 | . . 163 . 155 165 36 | 165 . . 161 . 164 37 | 170 . 157 . . . 39 | . 169 . . . . 40 | 188 . . . . . 41 | 198 . . . . . 42 | 199 218 . . . . 43 | 193 . . . . . ------------------------------------------------ --------------------------------------------------------------------------- -> Clase = Caro ------------------------------------------------ Turn | Car origin and Repair record 1978 circle | --- Domestic --- ---- Foreign --- (ft.) | 3 4 5 3 4 5 ----------+------------------------------------- 34 | . . . . 174 . 35 | . . . . 170 155 36 | . . . 174 164 174 37 | . . . . . 191 38 | . . . . 184 . 41 | 201 . . . . . 42 | 199 214 . . . . 43 | 210 218 . . . . 44 | 216 . . . . . 45 | 202 217 . . . . 48 | 230 221 . . . . 51 | 233 . . . . . ------------------------------------------------
Code:
table (turn) (foreign rep78) (Clase) if rep78>= 3, statistic(mean length) nformat(%5.0f mean leng) nototals Clase = Barato -------------------------------------------------------------------- | Car origin | Domestic Foreign | Repair record 1978 Repair record 1978 | 3 4 5 3 4 5 ------------------+------------------------------------------------- Turn circle (ft.) | 31 | 193 32 | 165 33 | 147 154 34 | 163 142 149 35 | 163 155 165 36 | 165 161 164 37 | 170 157 39 | 169 40 | 188 41 | 198 42 | 199 218 43 | 193 -------------------------------------------------------------------- Clase = Caro ------------------------------------------------------------------ | Car origin | Domestic Foreign | Repair record 1978 Repair record 1978 | 3 4 3 4 5 ------------------+----------------------------------------------- Turn circle (ft.) | 34 | 174 35 | 170 155 36 | 174 164 174 37 | 191 38 | 184 41 | 201 42 | 199 214 43 | 210 218 44 | 216 45 | 202 217 48 | 230 221 51 | 233 ------------------------------------------------------------------
Thank you!
Comment