Stata tip 136: Between-group comparisons in a scatterplot with weighted markers
收藏DataCite Commons2024-02-29 更新2024-07-03 收录
下载链接:
https://ageconsearch.umn.edu/record/340362
下载链接
链接失效反馈官方服务:
资源简介:
Scatterplots are a convenient tool to represent the relationship between two continuous variables. Often, it is necessary to classify this relationship according to values of a third categorical variable. There are several ways to do this (see, for example, Cox [2005]). Here we consider a variation of these graphs, sometimes referred to as bubbleplots, where an additional dimension of the data is represented in the size of the markers. In Stata, one can create such a graph by explicitly specifying a weight in the standard scatterplot syntax (see [G-2] graph twoway scatter). As an example, we will use auto.dta. Suppose we want to create a scatterplot of mileage and weight with markers weighted by repair record. Suppose further that we want to compare domestic (American) and foreign cars. A problem arises if we do not observe all values of the weighting variable in each of the groups defined by the categorical variable. Consider a cross-tabulation of repair record and car type.1
提供机构:
Unknown
创建时间:
2024-02-29



