Quantcast
Channel: Statalist
Browsing index pages (74049 articles)
↧

wrong SE in dsregress with cluster() option

Hi statalisters, it looks like when you run the following model: Code: dsregress Y T, controls(X1 X2...) cluster (clustervar) dsregress does not generate an error and simply provide the double lasso...

View Article


Help with using Monte Carlo Simulation to do sensitivity power analysis on a...

Hi, I am a psychology honours student who is using a mixed multilevel model for one of my research questions. I am considering using Monte Carlo simulation to do a sensitivity power analysis. However,...

View Article


get AMEs by combining -margins- with some sort of parallel process?

Dear Statalist: I am running a massive multinomial logistic regression using restricted data on an organization's servers. I'm trying to get average marginal effects. This is not my machine, I have to...

View Article

SSC activity, September 2026

During the last month, 28 packages have been added to the SSC Archive, and 42 packages have been updated, for a total of 4,014 packages. At this week's Stata Conference in Boston, I will present...

View Article

Stata Sociology Virtual Symposium 2026

The 2026 Stata Sociology Virtual Symposium is a meeting of researchers in sociology from around the world discussing current theory and applied methods using Stata. The proceedings consist of invited...

View Article


Winsorization of variables using winsor2

I winsorized 25 variables simultaneously using the winsor2 command in Stata. However, I noticed that the first variable in the variable list does not appear to have been winsorized correctly and...

View Article

hmerge: a prototype hash-based -merge- (m:1, 1:1) that skips the master sort,...

It occurred to me today that once upon a time I remember gtools having a long to-do list of speedups the author wanted to implement but never did, and that there were probably plenty of speedups we...

View Article

Reducing data set

Is there a way to exclude cases from a dataset if they do not have sufficient observations? I wrote: keep house if _n(VCF0900c >= 45) but it didn't work Is there a solution to this problem? Thanks...

View Article


New Stata command: xtie2 – Interactive panel data estimation with automatic...

Dear Statalist members, I would like to introduce xtie2, a new user-written Stata command for fixed-effects panel estimation with automatic pairwise interactions. The command automatically generates...

View Article


relative survival poisson model

HI Statalist, I am trying to model rs using a poisson model as per Royston and Lambert's book Flexible Paremetric Survival Analysis using Stata (2011). I have found the mean/variance is not equal. Does...

View Article

Repeated cross-sectional LCA with multi-level data

Hi there, I want to conduct a latent class analysis of repeated cross-sectional data. Participants in the dataset were sampled and recruited at the school level; therefore, I would like to include a...

View Article

PSA: Replacing string values does not entirely remove the old values from the...

I want to alert people who de-identify, anonymize, or share data to a behavior of Stata's .dta writer. I reported it to StataCorp Technical Support on 7 September. Details of their reply are at the...

View Article

Updated egfr package on SSC

Thanks as always to Kit Baum, a new version of the egfr program is available on SSC. This program calculates eGFR from serum creatinine (and/or cystatin C) and is useful for people analysing datasets...

View Article


New package on SSC: bayesinits (chain-specific initial values for bayesmh)

Thanks as always to Kit Baum, a new package -bayesinits- is now available from the SSC archive. To install: . ssc install bayesinits . help bayesinits -bayesinits- (version 1.4.1) generates...

View Article

Stata module to download BCRP (Central Reserve Bank of Peru) data: dbcrp

Dear Statalist community, I would like to announce the release of dbcrp, a simple Stata package I built to download macroeconomic time series directly from the API of the Central Reserve Bank of Peru...

View Article


Dark Mode for Mac

Array My apologies for the image quality. I have redownloaded Stata after about a year (on a mac). I never had issues with darkmode previously, but now it appears that it is only working for the...

View Article

how to plot Mean and 95% CI in longitudinal models

Hello everyone, I'm working on a longitudinal model, I'm using the Long format of the dataset. I generated the Mean of my continuous Variable with egen; then I used collapse (mean) Var, by(Group Time)...

View Article


reghdfe warning about singleton observations in clustered bootstrap

Thank you for your attention .I am estimating a firm-year panel model with firm and year fixed effects and standard errors clustered at the firm level. I also use a clustered bootstrap with 500...

View Article

Concatenating string observations

Assume the following sample dataset: var1 var2 var3 A 1 A B 0 B C 1 BC D 1 D E 0 E F 0 EF G 1 EFG I would like to get the concatenation seen in var3. The rule is simple: if var2 of the previous...

View Article

consul's generalised poisson

Hi all, I am interested if anyone has had experience using consul's generalised poisson. I have two questions: 1) can you use it for non-count data (like ordinary poisson) assuming the mean if...

View Article
Browsing index pages (74049 articles)


Latest Images