five

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
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作