Reshaping Challenge for Household Census Data
Dear STATA Users. I recently conducted a mini census in a township and entered the Data in Epiinfo. I have now imported the data in STATA and I want to look at the Demographic Characteristics of the...
View ArticleGrouping products by certain variables
Hello everyone, First time on the forum. Any suggestions are welcome. I have a strongly balanced panel dataset with 600 different products over a time period of 50 months. All products have 3...
View ArticleProblem with tsegen
Hello again: I have panel data and want to create a variable that is the standard deviation of net income over the preceding five years (including the current). I found the command tsegen and tried it...
View ArticleIdentifing the Components of Aggregated Variables
I am searching for a statistical method to identify whether certain variables are components of an aggregated variable A. For example, I have data on the aggregated variable A and data on other...
View ArticleIs CAIC available in SEM with Stata14?
Dear all, I'd like to have the CAIC statistic for the SEM models I'm testing as this statistic is sometimes requested from reviewers in my field of research who prefer it to AIC. I've looked on the...
View ArticleGrouping variables into subgroups under different categories
Hi there I am working with panel data, it is also medical data. i am trying to generate a referral variable which would something that is coded like Gen referral =="" replace referral if med...
View ArticleGraph dot crops long labels
Hello all! I am doing a very simple dot graph over a categorical variable that has long labels using this syntax: Code: graph dot (mean) myvar, over(catvar) Unfortunately, the graph dot command seems...
View ArticleHow can I add one more variable at each time while running a loop?
HI, I want to run different models on different interaction terms by using a loop. I have 3 moderating variables(x1, x2, x3) and 1 independent variable(x0). I want to create a loop where gives me a...
View Articleforecast solve - force forecast to be certain value at a certain time period
I have pre-existing monthly forecasts, but now need to make daily forecasts. The ending value of my daily forecasts 30 days from now should match the first monthly value. (I only have to make a 30 day...
View ArticleGenerating successive variables based on conditions
This should be a fairly simple task, but somehow I cannot wrap my head around it (not even a proper title to the question). I have 10 year (plus 10 month) variables, each with an accompanying dummy...
View ArticlePanel data structure (500 firms, 16 years): Estimating regression...
Hi all I am using panel data with 5000 firms and 16 years with two variables dividend per share (dps) and earnings per share (eps). My data analysis is performed in two stages. In the first stage, I...
View ArticleProcedure to use XTPCSE correctly
I am working on extending a paper whose regressions were obtained by OLS on a panel data (aprox. 20 years of data for 50 countries) using year and region (not country) dummies. I may think they pooled...
View ArticleStochastic Frontier Analysis
I am trying to fit a translog production function with four inputs and I realize you need to do it through SFA for panel data. Can someone post some clear example, how to do it step by step in stata.
View Articledropping 1 of 2 randomly-selected duplicate observations
I have a dataset of observations on children- some singletons, and some sets of 2 or 3 siblings. I want to only keep 1 of the siblings for analysis, selected randomly from the 2 or 3 in the dataset....
View Articlerestrict parmby by(group)
Hallo everybody, Im using parmby with the by(group) option to regress for every unique value of variable "group". I would like to restrict the range. e.g. if "group" consist of A B C D, I would like to...
View ArticleEstimating discretionary accruals using the modified Jones (1991) -...
Hello Statalist members I'm trying to compute the following model Array where: TA = Total Accruals delta Rev = Sales - Sales_n-1 delta AR = Receivables - Receivables_n-1 PPE = Property, plant and...
View Articletest of posting output
------------------------------------------------------------------------------ | Equal-tailed severe | Mean Std. Dev. MCSE Median [95% Cred. Interval]...
View ArticleQuestion about -bayesstats summary-
From the examples, it appears that -bayesstats summary- can function similarly to -lincom- and -nlcom-. However, when it's used to compute the ratios of two factors in the bayes equation, I don't...
View ArticleUsing Reshape without id series
Hello everyone, for an assignment I need to provide a table of courses completed (sucpassed*), ECTS points earned (ECTSpassed*) and GPA (GPA*) per student. Unfortunately the data are in the following...
View ArticleHeteroskedasticity in VAR models
Hi, Is there a way in Stata to test for heteroskedasticity in a VAR model, other than testing the residuals of each equation? A follow up to this is is there are a way of correcting for...
View Article