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
Estimating the transcendental and trans log production functionsDear forum I'm new to Stata and would like to inquire about the commands if i want to estimate trans…
Using margins after gsem mlogit model.I am running a multilevel multinomial logit model Code 1: gsem (i.o1<- v1 v2 v3 c1 c2 M1[g1]@1),…
boottest now does "bootstrap-c" advocated by Alwyn YoungAt the suggestion of James MacKinnon, I've added an option to boottest that lets you bootstrap the d…
String to date variable with time when string does not follow the format DMY ## or DMYhmsHi all, I have a large set of string variables (too large to encode) that contain dates and specifi…
Number of observations with variable in between a range informed in each of the rowsI have a hospital record dataset with data on (i) the diagnosis of the patient, (ii) the procedure p…
Subscribe to:
Post Comments (Atom)
0 Response to Descriptive stats
Post a Comment