Quantcast
Channel: Statalist
Browsing all 72752 articles
Browse latest View live
↧

Help in data labels in a scatterplot

Hi all, I have problems with adjusting the position of the data labels. As seen in the scatterplot below, the data labels are pretty messy at the bottom: Graph_data labels_forum.gph This is the code I...

View Article


Should i repeat lasso code several times and pool AUC and C-slope?

Hi everyone, Do i have to repeat my lasso code multiple times even if i put an rseed and average the AUC and C-slopes (i noticed that lasso is selecting different lambda sometimes even though i am...

View Article


Importing .dta (Stata format) files from one row below of the variable names...

Hi, I have a .dta file dataset and I want to read the data from row 1 as row 1 variable names. The dataset looks like the below and it's in .dta format. The A, B , C,..... are the variable names saved...

View Article

csdid of Callaway and Sant'anna (2021) framework - how to obtain the...

Hello I am running the Inverse probability weighting DiD estimator with stabilized weights (Stata option: stdipw) using the csdid command in Stata that is designed to perform various estimators from...

View Article

Sequence of Values

How to create a new variable called TEST that equals the value 1 (in all lines) whenever the sequence 1-2-1 occurs in the lines of variable VAR_B for each group of PAR_PESS and DT_DATE, if the interval...

View Article


Test post

Hi Statalisters, I have encountered an issue when comparing conditional Poisson and stratified stcox regression results, and could use some help. I am working with matched cohort data from a national...

View Article

Stratified Cox regression and conditional Poisson regression results not the...

Hi Statalisters, I have encountered an issue when comparing conditional Poisson and stratified stcox regression results, and could use some help. I am working with matched cohort data from a national...

View Article

calling PDFLaTeX from Stata ?

Dear list members, anyone knows well-functioning user-written commands to evoke PDFLaTeX from Stata? I found -texify- (ssc describe texify), but to me it simply doesn't work (ie, executes...

View Article


Xtcips no critical value calculated

Dear Statalisters, I am trying to compute a Pesaran Panel Unit Root Test with the command xtcips. My panel is balanced, with T=234, N=16. There is serial correlation (Woolridge test 2002) and slope...

View Article


Correlations between predicted scores after orthogonally rotated PCA

I am doing a pca on a correlation matrix. I predict the scores. Those scores are uncorrelated. I then conduct an orthogonal rotation and predict the scores again. The resulting scores are highly...

View Article

Firth bias correction multilevel logistic regression model

Hello, does anyone have advice on how to implement Firth's penalized maximum likelihood estimation method in a multilevel logistic regression model in Stata? I have data from a study with 32 clusters...

View Article

Manually setting stata's sortlist without running a sorting command

Good morning, I'm working with some large files, and I am trying to accelerate egen commands. Looking into the implementation of _gmean and _gtotal, the functions that egen x = total(...), by(...) and...

View Article

Recode if date is not missing

I have a problem that help recode doesnt solve. I have a IHD variable that is coded 0 or 1. In another column I have date of myocardial infarction. If a date is there, an event happened. If it's just a...

View Article


Panel data, Hausman test for a single year

Hi there Would anybody be able to help me with an issue I'm having trying to run a Hausman test? I have a set of data which is only for one year, although I am told that is still ok for panel data. I...

View Article

Image may be NSFW.
Clik here to view.

Estimation of risk premium with GMM

hi all, I am trying to estimate productivity risk premium through GMM procedure. Someone can help me in setting the system? I have different porfolios based on country and I want to set the system...

View Article


Loop of regressions over local macros.

Hello everyone, I'm trying to run a number of regressions over local macros. I won't display my data as it's not complex but just too big and I'd rather describe it. I have multiple variables named x...

View Article

HELP!!! Panel Diff-In-Diff Trouble

Hello! Thank you for reading/helping! I have a panel dataset with multiple observations per company, looking at the 6 month average stock price pre/post election (years 2002-2012), calculating the...

View Article


Binary Dependent Variable - Probit with Fixed Effects? Is it even possible?

Hello! I am working with a cross-sectional dataset, my dependent variable is binary, and my primary explanatory regressor is an index. I wanted to start with the most basic specification, Probit, as I...

View Article

miliseconds datetime convertion

Hi , my dataset has a datetime string like this: Code: clear input str28 activityDateTime "2022-11-29T18:42:07.5027244Z" "2022-11-29T18:42:06.8798184Z" "2022-11-29T18:42:05.4312594Z"...

View Article

Generate a table of summed obs organized by variable label

Using the following data example, I would like to generate a table of summing the numeric obs by variable label. The following describes how the variables are labeled: Vars "basicneeds transportation...

View Article
Browsing all 72752 articles
Browse latest View live


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