Quantcast
Channel: Statalist

quantilesets available from SSC

Thanks as ever to KitBaum a new package quantilesets is now available from SSC. The package follows from the update to Stata 19.50 on 12 November 2025 announced here...

View Article


Two Colours in XMLA option?

Code: clear input int date float gnp96 28 3631.6 29 3644.5 30 3672 31 3703.1 32 3757.5 33 3818.3 34 3841.6 35 3861.8 36 3906.8 37 3915 38 3937.8 39 3922.9 40 3922 41 3922.3 42 3961.3 43 3931 44 4027.3...

View Article


discretionary accruals

I am trying to compute discretionary accruals and non-discretionary accruals using the Jones (1991) model for a panel of firms. I found references to the ear_mgt command, but it is not recognized in my...

View Article

Average Marginal Effects for Gologit2 Model

Hallo, I'm Valerie and currently on my last year of bachelor degree, thus I'm in the process for writing my bachelor theses. I wanna estimate using Gologit as my dependent var is in categorical...

View Article

Trouble generating unique IDs: “too few variables specified”

I wrote a Stata program to generate unique IDs with a specified length and number of observations. However, when I run it, I keep getting the error: Code: too few variables specified r(102) I’m not...

View Article


SUEST vs Stacking Regressions

I have been running a test using suest, but recently realized that I get a very different p-value for the same test when I stack the regressions. In my specific context (the effect for a policy by...

View Article

Control Function Model with two IV's that produce different coefficient signs

Hi there, I am trying to run a control function model, where household income (loghou) is assumed to be endogenous and life satisfaction (reallifesat) is the dependent variable. I have two instrumental...

View Article

Bayesian analysis

Hi team, I have a challenge in running Bayesian Analysis, I just want to produce estimate for NMR at facility level by starting with just prior information Data Quality Category(DQC). The nmr_ is the...

View Article


Image may be NSFW.
Clik here to view.

Estimation of Pseudo Rsquare in Mixlogit

Hi Everyone, I am using STATA 15 and using mixlogit command in STATA for estimating a random parameter logit model, to analyse data from a choice experiment. I need to understand the model fit but I...

View Article


What sample should be used for DID estimation after propensity score matching?

Hello everyone! I have a 6-year panel data at the firm-year level. I use 1:4 propensity score matching (PSM) to construct the sample before DID regression. The following is my code for PSM: Code:...

View Article

Lca model specification- model validation

Good evening everyone, the attached document contains the literature on group-based trajectory modeling. I can't understand a few things: 1) Is occ >5 mandatory? I ask because it's present in...

View Article

Calculating individual weights based on household weights

In a household income and expenditure dataset, the data are recorded at the individual level, but only household weights are provided. Since the dataset also contains social information (e.g., marital...

View Article

Indirect effects - GSEM

Hello everybody, I am working on a GSEM model to study the effect of emotions on investment decisions. The model includes four mediators, all estimated with linear (OLS) equations, while the final...

View Article


Calculating deltas

Hello, I have a list of manufacturers by period and I am trying to calculate a delta like so: time_period chocolate_type manufacturer_count delta 2011_Q1 White 3 -- 2011_Q2 White 4 1 2011_Q3 White 4 0...

View Article

Logistics Imbalance Data

Hello all, I have two related questions about modeling with imbalanced binary outcomes in logistic regression. 1. Rare events vs class imbalance In King and Zeng’s “Logistic Regression in Rare Events...

View Article



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>