![]() * Send a compact codebook to HTML asdocx codebook, save( M圜odeBook. *Load the working women dataset sysuse nlsw88, clear * Send a compact codebook to MS Excel asdocx codebook, save( Myfile.xlsx) replaceĬodebook can be exported in the html format by using the option save(M圜odeBook.html) where M圜odebook can be any valid file name. If that serves your purpose, then asdoc (From SSC) can create a very neat table. For example, variable name, type, format, and varlable. xlsx is what asdocx uses to identify the output format. 19) Explain describe and codebook commands Once the data is loaded in STATA, the User must document in order to know what are the variables and how they are coded. Some of the information generated by codebook can also be generated with des command. If we wanted to send the output to MS Excel, then we must use the save(Myfile.xlsx) option. Since the default output format is MS Word, therefore, we did not use the save() option. The output file can be downloaded from here. Let us create a compact codebook for all variables and send the output to MS Word and then to MS Excel *Load the working women dataset sysuse nlsw88, clear * Send a compact codebook to MS Word asdocx codebook, replace detailed ![]() asdocx codebook mpg price trunk, replace detailed Discover the world's research Public Full-text Content uploaded by Oliver Lipps Author content. Consider the following example, where we want to create a codebook table for mpg, price, and trunk. This is an introduction to Stata for beginners with a focus on social science panel data analysis. Instead, if we wanted a codebook for some specific variables, then we would provide list of those variables. In the above code, the is optional, therefore, if we leave it out, codebook will be generated for all variables. The syntax for the compact codebook is: asdocx codebook, replace detailed asdocx can export the output to MS Word, Excel or LaTeX formats. The codebook command examines the variable names, labels, and data to produce a codebook describing the dataset. There is a max () function, and the egen command includes a max () function. To generate a compact codebook, see this post. This post discusses how to export the output from the codebook command in a detailed format. Asdocx is a Stata package that can export output from almost all Stata commands.
0 Comments
Leave a Reply. |