Skip to main content

Research Repository

Advanced Search

Dr Nicholas Cox's Outputs (3)

Speaking Stata: Finding the denominator: Minimum sample size from percentages (2023)
Journal Article
Cox, N. J. (2023). Speaking Stata: Finding the denominator: Minimum sample size from percentages. The Stata Journal, 23(4), 1086-1095. https://doi.org/10.1177/1536867x231212453

Percentage breakdowns for a series of classes or categories are sometimes reported without a specification of class frequencies or even the total sample size. This column surveys the problem of estimating the minimum sample size and class frequencies... Read More about Speaking Stata: Finding the denominator: Minimum sample size from percentages.

Speaking Stata: Replacing missing values: The easiest problems (2023)
Journal Article
Cox, N. J. (2023). Speaking Stata: Replacing missing values: The easiest problems. The Stata Journal, 23(3), 884-896. https://doi.org/10.1177/1536867x231196519

Missing values are common in real datasets, and what to do about them is a large and challenging question. This column focuses on the easiest problems in which a researcher is clear, or at least highly confident, about what missing values should be i... Read More about Speaking Stata: Replacing missing values: The easiest problems.

Stata tip 151: Puzzling out some logical operators (2023)
Journal Article
Cox, N. J. (2023). Stata tip 151: Puzzling out some logical operators. The Stata Journal, 23(1), https://doi.org/10.1177/1536867x231162009

The logical operators & (“and”) and | (“or”) can sometimes be tricky in statistical software such as Stata. They are extremely useful, so you need to understand thoroughly how they work. Any trickiness arises mostly in translating from ordinary langu... Read More about Stata tip 151: Puzzling out some logical operators.