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

Geodist between dataset and point

Hello, I currently deal with a dataset containing the latitude and longitude for over 2000 locations. I need to find the distance between all these points and another given point, for which I also know...

View Article


How to create a column that denotes whether or not a data row is a specific...

Hello, I am trying to figure out how to create a column that tells me whether or not a specific visit date is the visit of interest. For example in the data examples below, I show part of what the data...

View Article


Tabout with svy - balanced repeated replication variance estimation

Hi everyone, I am analyzing a complex survey (Population Assessment of Tobacco & Health) and need to use Balance Repeated Replication (BRR) for the variance estimation. I am generating hundreds of...

View Article

Image may be NSFW.
Clik here to view.

Reshaping dataset

Hello, I'm trying to reshape my data and I cannot find the right code for this. What I want is to have four rows corresponding to v05_itm: potatoes, onions, cauliflower, cabbage (variable v05_idc...

View Article

Margin option and squaring the variable

Dear Researchers, I am examining the impact of GDP on fertility rate across countries. There are many other independent variables in the equation. The GDP is lagged to one year and the independent...

View Article


spxtregress is arbitrarily dropping regressors

I'm trying to use Stata's built-in commands to estimate a spatial panel model (i.e. I'm using spxtregress, not xsmle). I've successfully spset and xtset my data and linked a shapefile, so I'm able to...

View Article

Zero LR test statistic for melogit

When using the following code Code: melogit goodprog i.screen i.dxagecat i.remoteness || sa3: , or I obtain the following output. What I don't understand is why the LR test statistic is 0 comparing...

View Article

Spatial model (xsmle) with spatial DV and IV lags and spatial errors?

Is there a way to estimate a model with (1) a spatially lagged dependent variable, (2) spatially lagged independent variables, and (3) spatial errors? Using xsmle, the sdm model incorporates 1 and 2...

View Article


Bootstrap with xtabond2

Hello everyone, I am a beginner researcher. Now, I try my data with xtabond2 command. I see almost estimator command can use Bootstrap , but xtabond2 cannot. So, can I use any other option similar to...

View Article


Omitted coefficients using reghdfe

Hello, I am estimating regressions that include different fixed effects and variables whose coefficients I am not interested in. I want to control them in the estimations. To do so, I am using the...

View Article

[putdocx] Using if command to remove blank line

Hello, I am making a lot of news report with putdocx command in Stata. I will collect various news from branches of my company, and I already have distributed the excel sheet that staff in branches...

View Article

Sample Selection Issue: Pooled Cross Sectional Data

Hi All, I am using micro level dependent and country level independent variable. Just for example, firm profitability and inflation, my problem is that I don't have panel data on micro level dependent...

View Article

R200 error ologit categorical dependent and independent variables

Hi all, I am really struggling with identifying the predictors of a 5 category variable Excellent to Poor Health. I want to look at this by a range of categorical variables e.g. agegroup,...

View Article


P value for trend

I would be very grateful if someone could help me with the code for this - I'm reporting the incidence of stroke in patients with diabetes versus no diabetes in 5 year bands, and would like to...

View Article

Selected variables for Lasso

I'm performing an inferential lasso model (dslogit) and I've specificed some variables of interest and some controls. It says that it selected 15 controls but still my output only shows my 2 variables...

View Article


Generate dummy if last observation for an individual in panel occurs before...

Hello, I have a panel of banks from year 1905 to 1910. Some banks have observations for the whole duration of the panel, some fail before the end of the panel (i.e. last observation in year 1907), some...

View Article

midas: Hessian has become unstable or asymmetric r(504);

I have one more query on midas please. While doing analysis, an error statement came up as below Hessian has become unstable or asymmetric r(504); When I clicked on r(504), the following message came...

View Article


A stochastic frontier model with correction for sample selection in Stata

Dear Statalist, I am trying to estimate a SFM that can address selection bias. Theoretically, I am aware that Greene (2010) developed an approach that can address selection bias in SFA. But, I couldn't...

View Article

Tracking changes in dataset

Hi, I tracked executives across firms and retained those executives who were employed for at least three years in each of at least two different firms. In addition, I breakdown executives by their...

View Article

Matching based on market value with range.

Hi, I am trying to Match the companies in my dataset that belong to the test sample 1:1 to a company out of that sample. To explain, the test sample was involved in Tax Disputes between 2003 and 2009,...

View Article
Browsing all 72898 articles
Browse latest View live


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