Stata JournalPub Date : 2023-03-01DOI: 10.1177/1536867X231162031
Fabrizio Colella, R. Lalive, S. Sakalli, Mathias Thoenig
{"title":"acreg: Arbitrary correlation regression","authors":"Fabrizio Colella, R. Lalive, S. Sakalli, Mathias Thoenig","doi":"10.1177/1536867X231162031","DOIUrl":"https://doi.org/10.1177/1536867X231162031","url":null,"abstract":"We present acreg, a new command that implements the arbitrary clustering correction of standard errors proposed in Colella et al. (2019, IZA discussion paper 12584). Arbitrary here refers to the way observational units are correlated with each other: we impose no restrictions so that our approach can be used with a wide range of data. The command accommodates both cross-sectional and panel databases and allows the estimation of ordinary least-squares and two-stage least-squares coefficients, correcting standard errors in three environments: in a spatial setting using units’ coordinates or distance between units, in a network setting starting from the adjacency matrix, and in a multiway clustering framework taking multiple clustering variables as input. Distance and time cutoffs can be specified by the user, and linear decays in time and space are also optional.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2023-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"45943556","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}
Stata JournalPub Date : 2023-03-01DOI: 10.1177/1536867X231162033
Yujun Lian, Chang Liu, Christopher F. Parmeter
{"title":"Two-tier stochastic frontier analysis using Stata","authors":"Yujun Lian, Chang Liu, Christopher F. Parmeter","doi":"10.1177/1536867X231162033","DOIUrl":"https://doi.org/10.1177/1536867X231162033","url":null,"abstract":"In this article, we introduce the sftt command, which fits two-tier stochastic frontier (2TSF) models with cross-sectional data. Like most frontier models, a 2TSF model consists of a linear frontier model and a composite error term. The error term is assumed to be a mixture of three components: two onesided inefficiency terms—strictly nonnegative and nonpositive, respectively—and a symmetric noise term. When providing appropriate distributional assumptions, sftt can fit models with exponential and half-normal specifications. sftt also fits 2TSF models with the scaling property to mitigate concerns over distributional specifications. In addition, we provide two subcommands, sftt sigs and sftt eff, to assist in postestimation efficiency analysis. We provide an overview of the 2TSF literature, a description of the sftt command and its options, and examples using simulated and actual data.","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2023-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"46051419","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}
Stata JournalPub Date : 2023-03-01DOI: 10.1177/1536867X231160122
N. Cox, S. Jenkins
{"title":"Announcement of the Stata Journal Editors’ Prize 2023","authors":"N. Cox, S. Jenkins","doi":"10.1177/1536867X231160122","DOIUrl":"https://doi.org/10.1177/1536867X231160122","url":null,"abstract":"","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2023-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"48853908","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}
Stata JournalPub Date : 2023-03-01DOI: 10.1177/1536867X231162020
Carlo Lazzaro
{"title":"Stata tip 150: When is it appropriate to xtset a panel dataset with panelvar only?","authors":"Carlo Lazzaro","doi":"10.1177/1536867X231162020","DOIUrl":"https://doi.org/10.1177/1536867X231162020","url":null,"abstract":"","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2023-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"49174408","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}
Stata JournalPub Date : 2023-03-01DOI: 10.1177/1536867x231162009
N. Cox
{"title":"Stata tip 151: Puzzling out some logical operators","authors":"N. Cox","doi":"10.1177/1536867x231162009","DOIUrl":"https://doi.org/10.1177/1536867x231162009","url":null,"abstract":"","PeriodicalId":51171,"journal":{"name":"Stata Journal","volume":null,"pages":null},"PeriodicalIF":4.8,"publicationDate":"2023-03-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"43506111","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}
Stata JournalPub Date : 2022-12-01DOI: 10.1177/1536867X221141021
Hongbing Zhu, Lihua Yang
{"title":"portfolio: A command for conducting portfolio analysis in Stata","authors":"Hongbing Zhu, Lihua Yang","doi":"10.1177/1536867X221141021","DOIUrl":"https://doi.org/10.1177/1536867X221141021","url":null,"abstract":"Portfolio analysis is widely used in empirical asset pricing to explore the cross-sectional relation between two or more variables. In this article, we introduce the methodology of portfolio analysis and describe a new command, portfolio, that provides a one-step solution for portfolio analysis. portfolio calculates the equal- or value-weighted returns with a t statistic for the portfolio and tests the significance of a long-short strategy in portfolios. portfolio also provides the Newey–West standard-error adjustment option for alleviating the impact of potential autocorrelation and heteroskedasticity in financial time series.","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":"43083102","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}
Stata JournalPub Date : 2022-12-01DOI: 10.1177/1536867X221141057
M. Bottai
{"title":"Estimating the risk of events with stprisk","authors":"M. Bottai","doi":"10.1177/1536867X221141057","DOIUrl":"https://doi.org/10.1177/1536867X221141057","url":null,"abstract":"Incidence rates are popular summary measures of the occurrence over time of events of interest. They are also called mortality rates or failure rates, depending on the context. The incidence rate is defined as the ratio between the total number of events and total follow-up time and can be estimated with the strate command. When the event of interest can occur multiple times on any given subject over a time period, like infections, the incidence rate represents an average count per unit of time, such as the average number of infections per year. When the event of interest can occur only once, such as death, an alternative summary measure is the risk, or probability, of occurrence per unit time, such as the risk of dying in one year. In this article, I present the stprisk command, which estimates risks, and illustrate its use and interpretation through a data example.","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":"44114491","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}
Stata JournalPub Date : 2022-12-01DOI: 10.1177/1536867X221141067
R. Newson
{"title":"Stata tip 147: Porting downloaded packages between machines","authors":"R. Newson","doi":"10.1177/1536867X221141067","DOIUrl":"https://doi.org/10.1177/1536867X221141067","url":null,"abstract":"Stata, like R and Genstat, is a statistical language with potentially as many dialects as users. These dialects are defined by the optional packages that each user has downloaded; the number may be hundreds for a high-power user. This is a major advantage of a statistical language (such as Stata) over a statistical package (such as SPSS). And Stata users would like to continue to have that advantage on web-disabled machines.","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":"48434266","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}
Stata JournalPub Date : 2022-12-01DOI: 10.1177/1536867X221141014
Z. Liao, R. Quaedvlieg, W. Zhou
{"title":"Conditional evaluation of predictive models: The cspa command","authors":"Z. Liao, R. Quaedvlieg, W. Zhou","doi":"10.1177/1536867X221141014","DOIUrl":"https://doi.org/10.1177/1536867X221141014","url":null,"abstract":"In this article, we introduce a new command, cspa, that implements the conditional superior predictive ability test developed in Li, Liao, and Quaedvlieg (2022, Review of Economic Studies 89: 843–875). With the conditional performance of predictive methods measured nonparametrically by the conditional expectation functions of their predictive losses, we test the null hypothesis that a benchmark model weakly outperforms a collection of competitors uniformly across the conditioning space. The proposed command can implement this test for both independent cross-sectional data and serially dependent time-series data. Confidence sets for the most superior model can be obtained by inverting the test, for which the cspa command also offers a convenient implementation.","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":"43376471","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}