首页 > 最新文献

Stata Journal最新文献

英文 中文
Endogenous models of binary choice outcomes: Copula-based maximum-likelihood estimation and treatment effects 二元选择结果的内生模型:基于copula的最大似然估计和治疗效果
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221140943
Takuya Hasebe
In this article, I describe the commands that implement the estimation of three endogenous models of binary choice outcome. The command esbinary fits the endogenously switching model, where a potential outcome differs across two treatment states. The command edbinary fits the endogenous dummy model, which includes a dummy variable indicating the treatment state as one of the explanatory variables. After one estimates the parameters of these models, various treatment effects can be estimated as postestimation statistics. The command ssbinary fits the sample-selection model, where an outcome is observed in only one of the states. The commands fit these models using copula-based maximumlikelihood estimation.
在本文中,我描述了实现对三种二元选择结果内生模型的估计的命令。命令esbinary适合内源性切换模型,在这种模型中,两种处理状态的潜在结果是不同的。命令edbinary适合内源性假人模型,该模型包含指示处理状态的假人变量作为解释变量之一。在估计了这些模型的参数后,可以估计出各种治疗效果作为后估计统计量。命令ssbinary适合样本选择模型,其中只在一种状态下观察到结果。这些命令使用基于copula的最大似然估计来拟合这些模型。
{"title":"Endogenous models of binary choice outcomes: Copula-based maximum-likelihood estimation and treatment effects","authors":"Takuya Hasebe","doi":"10.1177/1536867X221140943","DOIUrl":"https://doi.org/10.1177/1536867X221140943","url":null,"abstract":"In this article, I describe the commands that implement the estimation of three endogenous models of binary choice outcome. The command esbinary fits the endogenously switching model, where a potential outcome differs across two treatment states. The command edbinary fits the endogenous dummy model, which includes a dummy variable indicating the treatment state as one of the explanatory variables. After one estimates the parameters of these models, various treatment effects can be estimated as postestimation statistics. The command ssbinary fits the sample-selection model, where an outcome is observed in only one of the states. The commands fit these models using copula-based maximumlikelihood estimation.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"47252421","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
rcm: A command for the regression control method rcm:用于回归控制方法的命令
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221140960
Guanpeng Yan, Qian Chen
The regression control method, also known as the panel-data approach for program evaluation (Hsiao, Ching, and Wan, 2012, Journal of Applied Econometrics 27: 705–740; Hsiao and Zhou, 2019, Journal of Applied Econometrics 34: 463–481), is a convenient method for causal inference in panel data that exploits cross-sectional correlation to construct counterfactual outcomes for a single treated unit by linear regression. In this article, we present the rcm command, which efficiently implements the regression control method with or without covariates. Available methods for model selection include best subset, lasso, and forward stepwise and backward stepwise regression, while available selection criteria include the corrected Akaike information criterion, the Akaike information criterion, the Bayesian information criterion, the modified Bayesian information criterion, and cross-validation. Estimation and counterfactual predictions can be made by ordinary least squares, lasso, or postlasso ordinary least squares. For statistical inference, both the in-space placebo test using fake treatment units and the in-time placebo test using a fake treatment time can be implemented. The rcm command produces a series of graphs for visualization along the way. We demonstrate the use of the rcm command by revisiting classic examples of political and economic integration between Hong Kong and mainland China (Hsiao, Ching, and Wan 2012) and German reunification (Abadie, Diamond, and Hainmueller, 2015, American Journal of Political Science 59: 495–510).
回归控制方法,也称为项目评估的面板数据方法(Hsiao,Ching,and Wan,2012,Journal of Applied Econometrics 27:705–740;Hsiao和Zhou,2019,Journal ofApplied Economictrics 34:463–481),是一种在面板数据中进行因果推断的方便方法,该方法利用横截面相关性通过线性回归构建单个治疗单位的反事实结果。在本文中,我们提出了rcm命令,它有效地实现了有或无协变量的回归控制方法。可用的模型选择方法包括最佳子集、套索、前向逐步回归和后向逐步回归,而可用的选择标准包括校正的Akaike信息标准、Akaike消息标准、贝叶斯信息标准、修改的贝叶斯信息标准和交叉验证。估计和反事实预测可以通过普通最小二乘法、套索法或套索后普通最小二乘法进行。对于统计推断,使用假治疗单位的空间内安慰剂测试和使用假治疗时间的时间内安慰剂测试都可以实现。rcm命令生成一系列图形,用于沿途的可视化。我们通过回顾香港和中国大陆之间政治和经济一体化的经典例子(Hsiao,Ching,and Wan,2012)和德国统一(Abadie,Diamond,and Hainmueller,2015,《美国政治学杂志》59:495–510),展示了rcm命令的使用。
{"title":"rcm: A command for the regression control method","authors":"Guanpeng Yan, Qian Chen","doi":"10.1177/1536867X221140960","DOIUrl":"https://doi.org/10.1177/1536867X221140960","url":null,"abstract":"The regression control method, also known as the panel-data approach for program evaluation (Hsiao, Ching, and Wan, 2012, Journal of Applied Econometrics 27: 705–740; Hsiao and Zhou, 2019, Journal of Applied Econometrics 34: 463–481), is a convenient method for causal inference in panel data that exploits cross-sectional correlation to construct counterfactual outcomes for a single treated unit by linear regression. In this article, we present the rcm command, which efficiently implements the regression control method with or without covariates. Available methods for model selection include best subset, lasso, and forward stepwise and backward stepwise regression, while available selection criteria include the corrected Akaike information criterion, the Akaike information criterion, the Bayesian information criterion, the modified Bayesian information criterion, and cross-validation. Estimation and counterfactual predictions can be made by ordinary least squares, lasso, or postlasso ordinary least squares. For statistical inference, both the in-space placebo test using fake treatment units and the in-time placebo test using a fake treatment time can be implemented. The rcm command produces a series of graphs for visualization along the way. We demonstrate the use of the rcm command by revisiting classic examples of political and economic integration between Hong Kong and mainland China (Hsiao, Ching, and Wan 2012) and German reunification (Abadie, Diamond, and Hainmueller, 2015, American Journal of Political Science 59: 495–510).","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"43707277","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
The Stata Journal Editors’ Prize 2022: Christopher F. Baum 2022年Stata期刊编辑奖:Christopher F.Baum
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221140932
N. Cox, S. Jenkins
Christopher F. (Kit) Baum was born in 1951 and grew up in Northern Michigan. He received degrees in economics from Kalamazoo College, Florida Atlantic University, and the University of Michigan in, respectively, 1972, 1973, and 1977. He joined the faculty at Boston College in 1977 and has been based there ever since, now as Professor of Economics and courtesy Professor of Social Work. He has chaired the Economics Department since 2018. Kit’s research ranges widely, with interests most recently focused on social epidemiology and health policy. His other research fields include time-series econometrics, financial markets, and macroeconomic policy. In his rare spare time, Kit enjoys foreign travel and outdoor recreation in Northern Michigan and the Adirondacks.
Christopher F.(Kit)Baum出生于1951年,在密歇根州北部长大。他分别于1972年、1973年和1977年获得卡拉马祖学院、佛罗里达大西洋大学和密歇根大学的经济学学位。1977年,他加入波士顿学院,此后一直在那里工作,现在是经济学教授和社会工作礼貌教授。他自2018年起担任经济学系主任。Kit的研究范围很广,最近的兴趣集中在社会流行病学和卫生政策上。他的其他研究领域包括时间序列计量经济学、金融市场和宏观经济政策。在难得的业余时间里,基特喜欢在密歇根州北部和阿迪朗达克地区进行国外旅行和户外娱乐。
{"title":"The Stata Journal Editors’ Prize 2022: Christopher F. Baum","authors":"N. Cox, S. Jenkins","doi":"10.1177/1536867X221140932","DOIUrl":"https://doi.org/10.1177/1536867X221140932","url":null,"abstract":"Christopher F. (Kit) Baum was born in 1951 and grew up in Northern Michigan. He received degrees in economics from Kalamazoo College, Florida Atlantic University, and the University of Michigan in, respectively, 1972, 1973, and 1977. He joined the faculty at Boston College in 1977 and has been based there ever since, now as Professor of Economics and courtesy Professor of Social Work. He has chaired the Economics Department since 2018. Kit’s research ranges widely, with interests most recently focused on social epidemiology and health policy. His other research fields include time-series econometrics, financial markets, and macroeconomic policy. In his rare spare time, Kit enjoys foreign travel and outdoor recreation in Northern Michigan and the Adirondacks.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"46394009","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
qpair: A command for analyzing paired Q-sorts in Q-methodology qpair:用于分析Q方法中成对Q排序的命令
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221141002
N. Akhtar-Danesh, Stephen C. Wingreen
In this article, we introduce qpair as a new command written in Stata for the analysis of paired Q-sorts in Q-methodology, which is used for studying subjective issues and is a combination of qualitative and quantitative techniques. The quantitative component of Q-methodology employs a by-person factor analysis technique. However, currently there is no systematic approach for analyzing paired Q-sorts or longitudinal data in Q-methodology. We introduce the only statistical command available for the analysis of paired Q-sorts. The qpair command employs the factor extraction and factor rotation techniques in Stata. The command is illustrated using a dataset representing perceptions of 50 information technology professionals on person–organization fit regarding their training and development priorities.
在本文中,我们介绍了qpair,它是Stata中编写的一个新命令,用于分析Q方法中的成对Q排序,用于研究主观问题,是定性和定量技术的结合。Q方法的定量部分采用了个人因素分析技术。然而,目前在Q方法中还没有系统的方法来分析成对的Q排序或纵向数据。我们介绍了唯一可用于成对Q排序分析的统计命令。qpair命令使用Stata中的因子提取和因子旋转技术。该命令使用一个数据集进行说明,该数据集代表了50名信息技术专业人员对其培训和发展优先事项的个人-组织匹配度的看法。
{"title":"qpair: A command for analyzing paired Q-sorts in Q-methodology","authors":"N. Akhtar-Danesh, Stephen C. Wingreen","doi":"10.1177/1536867X221141002","DOIUrl":"https://doi.org/10.1177/1536867X221141002","url":null,"abstract":"In this article, we introduce qpair as a new command written in Stata for the analysis of paired Q-sorts in Q-methodology, which is used for studying subjective issues and is a combination of qualitative and quantitative techniques. The quantitative component of Q-methodology employs a by-person factor analysis technique. However, currently there is no systematic approach for analyzing paired Q-sorts or longitudinal data in Q-methodology. We introduce the only statistical command available for the analysis of paired Q-sorts. The qpair command employs the factor extraction and factor rotation techniques in Stata. The command is illustrated using a dataset representing perceptions of 50 information technology professionals on person–organization fit regarding their training and development priorities.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"42504110","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 3
power swgee: GEE-based power calculations in stepped wedge cluster randomized trials. power swgee:基于 GEE 的阶梯楔形分组随机试验功率计算。
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 Epub Date: 2023-01-05 DOI: 10.1177/1536867x221140953
John A Gallis, Xueqi Wang, Paul J Rathouz, John S Preisser, Fan Li, Elizabeth L Turner

Stepped wedge cluster randomized trials are increasingly being used to evaluate interventions in medical, public health, educational, and social science contexts. With the longitudinal and crossover nature of a SW-CRT, complex analysis techniques are often needed which makes appropriately powering SW-CRTs challenging. In this paper, we introduce a newly-developed SW-CRT power calculator, embedded within the power command in Stata. The power calculator assumes a marginal model (i.e., generalized estimating equations [GEE]) for the primary analysis of SW-CRTs, for which other currently available SW-CRT power calculators may not be suitable. The program accommodates complete cross-sectional and closed-cohort designs, and includes multilevel correlation structures appropriate for such designs. We discuss the methods and formulae underlying our SW-CRT calculator, and provide illustrative examples of the use of power swgee. We provide suggestions about the choice of parameters in power swgee, and conclude by discussing areas of future research which may improve the program.

在医疗、公共卫生、教育和社会科学领域,阶梯式楔形分组随机试验越来越多地被用于评估干预措施。由于阶梯式楔形集群随机试验具有纵向和交叉的特点,因此往往需要复杂的分析技术,这就给阶梯式楔形集群随机试验的适当加权带来了挑战。在本文中,我们将介绍一种新开发的 SW-CRT 功率计算器,它嵌入在 Stata 的功率命令中。功率计算器假定 SW-CRT 的主要分析采用边际模型(即广义估计方程 [GEE]),而目前可用的其他 SW-CRT 功率计算器可能不适合这种分析。该程序适用于完整的横断面设计和封闭队列设计,并包括适合此类设计的多层次相关结构。我们讨论了 SW-CRT 计算器的基本方法和公式,并提供了使用功率曲线的示例。我们对 power swgee 中参数的选择提出了建议,最后还讨论了未来研究中可能改进该程序的领域。
{"title":"power swgee: GEE-based power calculations in stepped wedge cluster randomized trials.","authors":"John A Gallis, Xueqi Wang, Paul J Rathouz, John S Preisser, Fan Li, Elizabeth L Turner","doi":"10.1177/1536867x221140953","DOIUrl":"10.1177/1536867x221140953","url":null,"abstract":"<p><p>Stepped wedge cluster randomized trials are increasingly being used to evaluate interventions in medical, public health, educational, and social science contexts. With the longitudinal and crossover nature of a SW-CRT, complex analysis techniques are often needed which makes appropriately powering SW-CRTs challenging. In this paper, we introduce a newly-developed SW-CRT power calculator, embedded within the power command in Stata. The power calculator assumes a marginal model (i.e., generalized estimating equations [GEE]) for the primary analysis of SW-CRTs, for which other currently available SW-CRT power calculators may not be suitable. The program accommodates complete cross-sectional and closed-cohort designs, and includes multilevel correlation structures appropriate for such designs. We discuss the methods and formulae underlying our SW-CRT calculator, and provide illustrative examples of the use of power swgee. We provide suggestions about the choice of parameters in power swgee, and conclude by discussing areas of future research which may improve the program.</p>","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10035664/pdf/","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"9197626","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"OA","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
printcase: A command for visualizing single observations printcase:将单个观察结果可视化的命令
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221141022
Max D. Weinreb, J. Trinitapoli
In this article, we introduce the printcase command, which outputs data from a specific observation into an easy-to-read Microsoft Word or PDF document. printcase allows analysts to focus on a single observation within a dataset and view that observation in its entirety. The output displays fields in table format, with all variables identified by their corresponding labels and all responses identified by their corresponding value labels. We explain how printcase works, give examples of circumstances under which this type of table-based quasiquestionnaire would be useful, and provide code for printing single observations.
在本文中,我们将介绍printcase命令,该命令将来自特定观察的数据输出到易于阅读的Microsoft Word或PDF文档中。Printcase允许分析师专注于数据集中的单个观察结果,并从整体上查看该观察结果。输出以表格格式显示字段,所有变量由其相应的标签标识,所有响应由其相应的值标签标识。我们解释了printcase是如何工作的,给出了这种基于表格的准问卷有用的情况的例子,并提供了打印单个观察结果的代码。
{"title":"printcase: A command for visualizing single observations","authors":"Max D. Weinreb, J. Trinitapoli","doi":"10.1177/1536867X221141022","DOIUrl":"https://doi.org/10.1177/1536867X221141022","url":null,"abstract":"In this article, we introduce the printcase command, which outputs data from a specific observation into an easy-to-read Microsoft Word or PDF document. printcase allows analysts to focus on a single observation within a dataset and view that observation in its entirety. The output displays fields in table format, with all variables identified by their corresponding labels and all responses identified by their corresponding value labels. We explain how printcase works, give examples of circumstances under which this type of table-based quasiquestionnaire would be useful, and provide code for printing single observations.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"43418647","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
crtrest: A command for ratio estimators of intervention effects on event rates in cluster randomized trials 在聚类随机试验中,干预对事件发生率的影响的比率估计的命令
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221141012
Xiangmei Ma, Y. Cheung
We describe five asymptotically unbiased estimators of intervention effects on event rates in nonmatched and matched-pair cluster randomized trials, and we present a bias-corrected version of the estimators for use when the number of clusters is small. The estimators are the ratio of mean counts (r 1), ratio of mean cluster-level event rates (r 2), ratio of event rates (r 3), double ratio of counts (r 4), and double ratio of event rates (r 5). r 1, r 2, and r 3 estimate the total effect, which comprises the direct and indirect effects; r 4 and r 5 estimate the direct effect. We describe a new command, crtrest, that provides these ratio estimators and their standard errors in nonmatched and matched-pair cluster randomized trials.
我们描述了在非匹配和匹配配对聚类随机试验中干预对事件率影响的五个渐近无偏估计量,并提出了一个偏差校正的估计量版本,用于聚类数量较少的情况。估计量是平均计数的比率(r1)、平均集群级事件率的比率(r2)、事件率的比例(r3)、计数的双倍比率(r4)和事件率的双倍比例(r5)。r1、r2和r3估计总效应,包括直接效应和间接效应;r4和r5估计了直接效应。我们描述了一种新的命令crtrest,它在非匹配和匹配的配对随机试验中提供了这些比率估计量及其标准误差。
{"title":"crtrest: A command for ratio estimators of intervention effects on event rates in cluster randomized trials","authors":"Xiangmei Ma, Y. Cheung","doi":"10.1177/1536867X221141012","DOIUrl":"https://doi.org/10.1177/1536867X221141012","url":null,"abstract":"We describe five asymptotically unbiased estimators of intervention effects on event rates in nonmatched and matched-pair cluster randomized trials, and we present a bias-corrected version of the estimators for use when the number of clusters is small. The estimators are the ratio of mean counts (r 1), ratio of mean cluster-level event rates (r 2), ratio of event rates (r 3), double ratio of counts (r 4), and double ratio of event rates (r 5). r 1, r 2, and r 3 estimate the total effect, which comprises the direct and indirect effects; r 4 and r 5 estimate the direct effect. We describe a new command, crtrest, that provides these ratio estimators and their standard errors in nonmatched and matched-pair cluster randomized trials.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"46106720","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Speaking Stata: Automating axis labels: Nice numbers and transformed scales Speaking Stata:自动轴标签:漂亮的数字和变换的比例
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221141058
N. Cox
Two common problems with graph axis labels are to decide in advance on some “nice” numbers to use on one or both axes and to show particular labels on some transformed scale. In this column, I discuss the nicelabels and mylabels commands, which address these problems. The first command is new to Stata, and the second is a revision of a previously published command. I also survey the myticks command for tick placement. In all commands, the main output is a local macro in the calling program’s space, in the interest of promoting automation in do-files and programs.
图形轴标签的两个常见问题是提前决定在一个或两个轴上使用的一些“好”数字,以及在某个变换的比例上显示特定的标签。在本专栏中,我将讨论nicetals和mylabels命令,它们解决了这些问题。第一个命令是Stata的新命令,第二个是以前发布的命令的修订版。我还调查了用于记号放置的myticks命令。在所有命令中,主要输出是调用程序空间中的本地宏,以促进do文件和程序的自动化。
{"title":"Speaking Stata: Automating axis labels: Nice numbers and transformed scales","authors":"N. Cox","doi":"10.1177/1536867X221141058","DOIUrl":"https://doi.org/10.1177/1536867X221141058","url":null,"abstract":"Two common problems with graph axis labels are to decide in advance on some “nice” numbers to use on one or both axes and to show particular labels on some transformed scale. In this column, I discuss the nicelabels and mylabels commands, which address these problems. The first command is new to Stata, and the second is a revision of a previously published command. I also survey the myticks command for tick placement. In all commands, the main output is a local macro in the calling program’s space, in the interest of promoting automation in do-files and programs.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"44861450","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Stata tip 148: Searching for words within strings stat技巧148:在字符串中搜索单词
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-12-01 DOI: 10.1177/1536867X221141068
N. Cox
Searching for particular text within strings is a common data management problem. One frequent context is whenever various possible answers to a question are bundled together in values of a string variable. Suppose people are asked which sports they enjoy or something more interesting, like which statistical software they use routinely. To keep the matter simple, we will first imagine just lists of one or more numbers that are concise codes for distinct answers, say, "42" for "cricket" or "1" for "Stata". Nonnumeric codes will also be considered in due course. For more on handling such questions, sometimes called multiple response, see Cox and Kohler (2003) or Jann (2005).
在字符串中搜索特定文本是一个常见的数据管理问题。一个常见的上下文是每当问题的各种可能答案被捆绑在字符串变量的值中时。假设人们被问及他们喜欢哪些运动或更有趣的事情,比如他们经常使用哪些统计软件。为了简单起见,我们将首先想象一个或多个数字的列表,这些数字是不同答案的简明代码,比如“cricket”的“42”或“Stata”的“1”。非数字代码也将在适当的时候被考虑。有关处理此类问题(有时称为多重回答)的更多信息,请参阅Cox和Kohler(2003)或Jann(2005)。
{"title":"Stata tip 148: Searching for words within strings","authors":"N. Cox","doi":"10.1177/1536867X221141068","DOIUrl":"https://doi.org/10.1177/1536867X221141068","url":null,"abstract":"Searching for particular text within strings is a common data management problem. One frequent context is whenever various possible answers to a question are bundled together in values of a string variable. Suppose people are asked which sports they enjoy or something more interesting, like which statistical software they use routinely. To keep the matter simple, we will first imagine just lists of one or more numbers that are concise codes for distinct answers, say, \"42\" for \"cricket\" or \"1\" for \"Stata\". Nonnumeric codes will also be considered in due course. For more on handling such questions, sometimes called multiple response, see Cox and Kohler (2003) or Jann (2005).","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"44872513","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
A Stata implementation of second-generation p-values 第二代p值的Stata实现
IF 4.8 2区 数学 Q1 Mathematics Pub Date : 2022-09-01 DOI: 10.1177/1536867X221124466
Sven-Kristjan Bormann
In this article, I introduce new commands to calculate second-generation p-values (SGPVs) for common estimation commands in Stata. The sgpv command and its companions allow the easy calculation of SGPVs and their associated diagnostics, as well as the plotting of SGPVs against the standard p-values.
在本文中,我介绍了一些新命令,用于计算Stata中常见估计命令的第二代p值(SGPV)。sgpv命令及其配套功能允许简单地计算sgpv及其相关诊断,以及根据标准p值绘制sgpv。
{"title":"A Stata implementation of second-generation p-values","authors":"Sven-Kristjan Bormann","doi":"10.1177/1536867X221124466","DOIUrl":"https://doi.org/10.1177/1536867X221124466","url":null,"abstract":"In this article, I introduce new commands to calculate second-generation p-values (SGPVs) for common estimation commands in Stata. The sgpv command and its companions allow the easy calculation of SGPVs and their associated diagnostics, as well as the plotting of SGPVs against the standard p-values.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2022-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"42588398","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
期刊
Stata Journal
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1