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

Collapsing Nested Variable

Hello, I am trying to generate a variable that indicates if more than 1/3 of the population (perc_pop_block) in a census tract (geo_id) is at least 1 mile away from a clinic (mile_1). The distance is...

View Article


How to adjust graph's transparency?

Hello, I tried to draw a graph like this: Array but a curve will be covered by another: Array Code: Code: clear set obs 100 generate x1 = rnormal(0,1) generate x2 = rnormal(0.5,1.3) summarize x1 local...

View Article


[sspace] setting an initial value for the variance-covariance matrix

Hello everyone I am trying to replicate the Laubach and Williams paper on measuring the natural rate of interest. Link: http://www.frbsf.org/economic-resear.../wp2016-11.pdf However, between the first...

View Article

How to find the value for which my continuous variable stops being significant?

I have a continuous distance measure as an explanatory variable (a properties distance to an amenity, ranging from 0 to 60km). How, if possible at all, can I find the value for which distance to an...

View Article

Merging Datasets with Two Unique Identification Variables

Hi everyone, I am attemping to merge two panel data sets. The documentation of the data tells me that I should utilise two unique identification variables to merge the data, titled 'household_id2' and...

View Article


-GSEM- Adding higher-level predictors to a multilevel random intercept model

Hello! I have a question on generalized structural equation modeling. Say, I fit the following two-level random intercept model: Code: gsem (x1 -> y, ) (x2 -> y, ) (M1[hospital_id] -> y, ),...

View Article

The use of robust standard errors for correction of estimation problems

Hello all, I'm performing a convergence analysis of income growth rates based on panel data and for this I'm estimating my models by fixed effects or random effects, depending on the Hausman test...

View Article

Labeling Boxplot elements

Hello, In the following data I want to add the names of the corresponding countries as labels to the min, max, p25, p50, and p75 lines in the boxplots. Is it possible? Code: sysuse lifeexp, replace...

View Article


Homework:/

I wonder if someone could help me answering this question: Generate a categorical variable with four categories, called cingr, each Category representing a quartile of its distribution

View Article


Seemingly Unrelated regression and Bootstrap

Hello! I am using a seemingly unrelated regression to estimate the impacts of terrorist attacks on the tourism flows from four different nationalities. Although the independent variables are all the...

View Article

recursive bivariate probit with instrumental variable

Hi statalist users im going to use a recursive bivaraite probit model for estimate the factor that affect the decision to move for studies and for work (just after graduation). mobility for study=...

View Article

Outputting Results from Loop into Excel

Hi everyone, I am trying to export the results from a loop I did using the ranksum function. I want to graph the the sums of the ranks for the two groups in the test. I am doing the test for all the...

View Article

Taylor estimation via sspace (Kalman filter)

Hi guys, I have an issue. Assuming that the trend growth rate (g) of gdp equals the real interest rate and the inflation trend (i_trend) is just a crude proxy for the inflation target and there are...

View Article


Cases dropped in xtlogit

Hi All, I'm using xtlogit, fe. Some cases are dropped. I wonder how I can figure out exactly which cases are dropped. I want to make sure that the fixed-effects model didn't lead to a selective sample....

View Article

twoway loop - how to make title out of the country name + country code?

Hi, So i have several panel units and i want to plot 2 different variables using lines, which i did using loop command. my question is currently each graph's title is its country code, but i want it to...

View Article


Shrinking the database according to date

Hi all, I am rather new in STATA and I am stuck with a little problem. I have a database in which a have a patient ID, a treatment date (%td) and different drug types that were administered (yes or...

View Article

Splitting yearly panel data to monthly data in preparation for survival analysis

Hello All, I'd appreciate getting some help please: How can I split my yearly panel data to monthly data in preparation for survival analysis? In the dataset below, 'Fail' would be the failure event...

View Article


Homework policy statement added at...

We have reinstated a formal statement of policy advising that people do not ask or answer homework questions. It is at http://www.statalist.org/forums/help#adviceextras If you want to know more, read...

View Article

Labeling Variables Using A Loop

Hi All, I am working with a dataset that has employment data from 1969 to 2015 in different classifications (i.e. Private Employment 1969, 1970, 1971.....2015; Total Employment 1969, 1970...2015). Each...

View Article

merge with dates within time frames

Hello. Hope someone could help me.- I have 3 datasets related to a large group of patients, divided into: SET A. patients (id for patients) with demographic data SET B. treatments (with id for...

View Article
Browsing all 65033 articles
Browse latest View live


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