Hello !
so i hvae trying this code i found in a tutorial to create a table similar to the one joind here and i get : 'Invalid type of entry in cells option, or you may
have forgotten to turn on the sum or svy option'
i dont know where should i turn on these options or whether the code doesnt actualy work for this goal
the code :
************************************************** ***************************************
use "data path", clear
generate dummy = 1
tokenize "classize c_size tipuach "
local counter = 0
local filemethod = "replace"
local heading = "h1(nil) h2(nil) h3(|Mean |SD | p10 | p25 | p50| p75 )"
foreach v of varlist classize c_size tipuach {
if `counter' > 0 {
local filemethod = "append"
local heading = "h1(nil) h2(nil) h3(nil)"
}
label define dummy 1 "`1'", modify
label val dummy dummy
tabout dummy using example.txt, ///
`filemethod' c(mean `v' SD `v' ///f(1c 1c 1c 1c 1c 0) sum `heading' ///
lines(none) ptotal(none)
mac shift
local counter = `counter' + 1
}
************************************************** ***************************************
the kind of table im trying to get : ( please do share if you have a better code for this type pf tables, thank you)
Array
Related Posts with Descriptive stats
Analysis of Ranked VaribalesDear All, I need some help in analyzing my ranked variables. In my survey I asked to select the top…
t-stat table difference by groupsHello Statalisters, I have the following dataset, Code: * Example generated by -dataex-. To insta…
Different results while working with stata in windows and macHi All, I've recently started working on Stata (13.1) on a mac system, and I'm getting different re…
Best practices for diff-in-diffHi, I'm working on a reverse diff-in-diff analysis on sentencing after a circuit split was resolved …
All variables are insignificantHello, I am working on a time series data of a specific country, I followed the steps of time series…
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive stats
Post a Comment