splashklion.blogg.se

Stata codebook command
Stata codebook command






stata codebook command

This is similar to executing a series of. When the cell magic command stata is used, a block of Stata commands can be specified and executed all at once. Quick start Codebook of all variables in the dataset codebook Codebook of variables v1. When the line magic command stata is used, a one-line Stata command can be specified and executed, as it would be in Stata’s Command window. Title codebook Describe data contents DescriptionQuick startMenuSyntax OptionsRemarks and examplesStored resultsReferences Also see Description codebook examines the variable names, labels, and data to produce a codebook describing the dataset. I would appreciate any insight into the differences in how the codebook displays %tc vs. Execute one line or a block of Stata commands. list date1 // However this output IS as I expect! Yay! (But why doesn't the codebook reflect the %tc formatting?) codebook date1 // Output is not as I expect, there is no indication that date1 is formatted as a date-time variable. format date1 %tc // Applying date-time formatting so the variable is human-readable. codebook date1 // Starting with a numeric variable. Why doesn't the -codebook- command produce output with a human-readable date1? In contrast, when I apply %tc formatting to a numeric variable, the codebook does NOT indicate it is a date-time variable, even though the variable displays as a date-time the way I want it to when using the -browse- or -list- commands, as shown with date1 below. codebook date2 // Output is as I expect-Yay! format date2 %td // Applying daily date formatting so the variable is human-readable. Hello friends, What's up In this video, I am coming with a new Stata Command which is codebook.The standard definition for codebook according to STATA is '. codebook date2 // Starting with a numeric variable. This makes sense to me-I have a numeric variable, and because I applied the %td format, Stata knows it is a daily date, and the codebook tells me so.

stata codebook command stata codebook command

I am wondering whether there is a bug in the Stata 17 codebook command affecting what it indicates about the %tc date-time format, or whether I am misunderstanding date-time formats?īackground: When I have applied the %td format to a numeric variable, the codebook tells me that the variable is a daily date, as shown with date2 in the example below. It assumes that you have set Stata up on your computer (see the Getting Started with Stata handout), and that you have read in the set of data that you want to analyze (see the Reading in Stata Format (.dta) Data Files handout).








Stata codebook command