Second, "didn't work" is meaningless even to Stata experts without explanation. It can mean anything from "Stata complained" to "Stata didn't produce the results I expected". That said, some of your results are puzzling. (B) is illegal, rather than ambiguous: Stata doesn't allow you to...
subpop():withregress,poisson, orgsem. For factor variables, the tests are computed using the prefixsvy:orsubpop():withtabulate twoway. Please refer toMethods and formulasin[R] dtablefor details. Below, we demonstrate how to reproduce the test results for both continuous and factor variables....
What does collapse in Stata do? The collapse command in Stata is used to create summary variables from an existing dataset. It allows you to aggregate observations within groups, summarizing them into a new dataset. Collapsing a dataset can be useful for creating summary statistics, such as the...
When it comes to analyzing quantitative data, it’s almost always in your best interest to dig deeper into the data. One of the best ways to do this is by cross-tabulating your data. Cross-tabulation maps out the relationship between two, or sometimes three, different variables. This allows...
Dear all, I use -tabulate- to check the distribution of two variables. But I am interested in the difference. Which code is used to directly give the difference in value and test the significance? For example, group 1: number of new firms in area A; group 2: number of new firms in...
in which I seek to display variables <Age> and <Gender> in columns, over levels <Group> in rows: > > qui levelsof Group, local(levels) > foreach l of local levels { > tabulate Gender Age if Group == `l', row > } > > Two questions about which I'd like to ask advice: > ...
in which I seek to display variables <Age> and <Gender> in columns, over levels <Group> in rows: > > qui levelsof Group, local(levels) > foreach l of local levels { > tabulate Gender Age if Group == `l', row > } > > Two questions about which I'd like to ask advice: > ...
In fact, copying tables is the main issue that prevents me from universally recommending Stata to my colleagues (as opposed to SPSS, SAS, or nothing at all). I wish this were possible from the standard -tabulate- commands, because most of my colleagues are not interested in learning -displa...
But "institute" and "individual" are not categories of a binary or dichotomous variable; they are measured variables with many distinct values. In fact, many, many distinct values, so many that any command based directly or indirectly on -tabulate- will fail. Also, _none_ of the commands ...
.summarize age income.tabulate age.logit outcome gender status if age > 29.scatter income educ if state == "Texas".drop if age <= 29.by gender: tabulate case exposure.by agegrp: summarize income hours One of the easiest commands to remember ishelp. If you typehelpmy topic, Stata will...