4/1/2024 0 Comments Create table stata 12This simple example illustrates the main idea of how to alter the table's contents, but there are a variety of additional options you can use as well. Nth percentile (where N is between 1 and 99) Sums ignoring optionally specified weight Standard error of the mean, Poisson distribution (sqrt(mean)) Standard error of the mean, binomial distribution (sqrt(p(1-p)/n)) While mean is a frequent choice, the following other words can be placed in c() and will cause the corresponding item to be tabulated. For example, to get Stata to do a two-way table with means of a third variable, rather than frequencies you would type table, c(mean ) so to see how sex and grade level affected reported intrinsic motivation, the command would be table sex grade, c(mean intrinsi) The result of which would look like this: To change the default behavior, you have only to specify what you would like Stata to display instead. In either case, the default behavior for a table is to display frequency of occurrence. This can also be done with more than one categorical variable, table. The most basic table, table , will show the variable and the frequencies of each category, like so. Stata offers a variety of ways to tabulate data. One of the most useful ways to look at a quick summary of data is by tabulating it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |