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

Confidence Intervals using Delta Method in Mixed Linear Models

Hi All, Not essentially related to STATA but something more general. How is the delta method used to find the confidence interval of a function in a mixed model. In particular I am concerned about...

View Article


How to code when an observation reappears

Hi all, I would like to ask about how to code below situation. I want to generate a variable and code it 1 when an executive left firm, hired by other firm, and comeback to the original firm. For...

View Article


Matching two string fields with each other

I am trying to match two string variables that contain church names to each other (church_a, church_r). Each observation has these variables, and I want to see if they match up (roughly). I've been...

View Article

how to delete duplicated firm year observations based on the value of a third...

Hi all, I am Chris, a new Stata learner. Now I encounter a problem about how to delete observations in my data set. I will use the following examples to illustrate my puzzle: Firmcode Year Tenure 1...

View Article

regression using a subsample, bootstrap weights

Dear all, I have a large dataset which contains information for 15 countries. The dataset has been created using multiple imputation and includes survey and bootstrap weights. Is there a way to perform...

View Article


how to code environmental uncertainty

Hi all, I would like to ask you about how to code "environmental uncertainty" in management study. My definition of environmental uncertainty is: The standard deviation of the five-year average sales...

View Article

Counting with several event windows in the data

I have data containing information on the stock return for several firms. The data is already sorted such that one firm (identified by ISIN) has several event windows with +60 / - 60 days around the...

View Article

Difficulties with destringing!

Dear Users I have a household data set with approximately 13000 observations. one of the variables (var_house) is suppose to contain only numeric values. But there are a number of non numeric(not alpha...

View Article


Problem with logit model

Dear everyone, I am trying to learn about logit model by myself. However, I have got some problems that I can't find answers anywhere. I am interested in the factors that influence whether a person...

View Article


Bootstrap vs. Robust standard errors

Hi guys, I have run a linear regression and my model suffers from heteroskedasticity that's obvious. (see the table and test) Code: reg HRQoL i.edu_cat i.smoking_behaviour blood_pressure...

View Article

unzipfile fails to extract files larger than 4 GiB

I'm trying to use unzipfile in Stata 14.1 to extract a ~1 GiB zip file containing a ~5 GiB text file. unzipfile fails with Code: I/O error could not perform unzip r(601) It seems to extract the first...

View Article

how to give the last observation to all others

Hi all, I am calculating environmental uncertainty of firms and ran into a trouble to code. I want to give the last observation to all other firms. For example, as you can see from below table, the...

View Article

Problems with logit/probit

Dear Statalist People, i am doing a probit/logit Model. If i Run my model my AIC for logit model is smaller so i should use logit model. But i can not find something to do in stata the test for...

View Article


Oaxaca Module: Normalizing to Solve Omitted Dummy Variable Problem

Dear Statalist: I'm using the Oaxaca module to decompose changes in migration propensities (from the IPUMS version of the Current Population Survey) in the U.S. over time as a function of individual...

View Article

From SAS to Stata

I need to convert this code from SAS to Stata. I'm a newbie Stata user (2 months) (previously SPSS). I used SAS 30 years ago! I think its pretty straight forward! Can anyone help? Data file has up to...

View Article


syntax from SAS to Stata

I need to convert this code from SAS to Stata. I'm a newbie Stata user (2 months) (previously SPSS). I used SAS 30 years ago! I think its pretty straight forward! I'm using a government dataset and I...

View Article

Guidance request on Tobit model

Greetings! I am a bit new to Tobit model in which I am looking for your guidance. Here is my case. I have 200 respondents of which 162 of them are users of technology with variable levels of use. What...

View Article


Seemingly Unrelated Regression (SUR) with Panel Data

Dear Stata Users, I want to estimate a system of equations, consisting of a cost function and multiple input-demand functions. The input-demand functions do not add any new parameters, therefore I need...

View Article

Renaming variables if they exist

I am merging many files with similar, but not identical variable names. For example, start_year, startYear, yearStart may all be used in different files. Is there a way to ask Stata to check whether a...

View Article

Matching Samples

Hi all, I have cross sectional data and I am comparing wages between whites and ethnic minorities. I wanted to match the sample of whites to the sample of ethnic minorities (i.e for age as the average...

View Article
Browsing all 72758 articles
Browse latest View live


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