Announcement
Collapse
No announcement yet.
14 results in 0.0103 seconds.
You can also choose from the popular tags.

Weights and Descriptive statistics
I am conducting a study that examines the impact of a statelevel policy on individuals living in counties that have physician shortages. My main data...
 1 post

Andrew Musau Thanks. Is there anyway I could rewrite the margins command in Code A to get the same result as Code B? I am trying to understand better...
 4 posts

Margins with subpop option vs Regression with if option
A.Code:logistic y x covariates [pweight=perwtf], vce(cl f00011) margins, subpop(b) dydx(x covariates)
Code:logistic y x covariates if b==1
 4 posts

Thanks. I am aware c.year is a more straightforward alternative but it doesn't work in my particular case. I have a model
Code:reg i.statepolicy
 8 posts
Leave a comment:

Coding linear time trend with missing years
I am familiar with creating linear time trends. For example, if I have study years 1996, 1997, 1998 and 1999; then the linear time trend variable will...
 8 posts

Clyde Schechter Philip Gigliotti
I need some clarification about adding statespecific quadratic trends to a differenceindifferences model....
 22 posts
Leave a comment:

Thanks. This worked. The only change I needed to make was to change:
Code:replace year=2015 if year==.
Code:replace
 22 posts
 1 like
Leave a comment:

I have a dataset (example below) with 51 observations (the 50 states and DC). The dataset has four variables: f00011, state, abbreviation and fullsopyear....
 22 posts
Leave a comment:


Clyde Schechter I ran the code but now getting a new error "variable f1533420 not found r(111);". As earlier stated, the last two digits of...
 22 posts
Leave a comment:

Thanks a lot. This worked. I made some modifications to the code to transfer the variable labels after the reshape long but I keep getting an error "f14675...
 22 posts
Leave a comment:

They all start with f and the last two are always the year but not all years are present for some observations. All variables are 8 characters long including...
 22 posts
Leave a comment:

Yes. They all start with f and the last two are always the year but not all years are present for some observations. All variables are 8 characters long...
 22 posts
Leave a comment:

Thanks for this code. But I have a peculiar case in which the last two digits of my variable name represents the year (e.g. f1467510 is the observation...
 22 posts
Leave a comment:
Leave a comment: