Help importing data from Excel to Stata
Dear Experts, I am not sure if I will make sense here. My problem is regarding importing data in Stata (Version 13.1) from excel files which are auto generated by some kind of respiratory machines. I...
View Articlemean age interpretation on panel data results
Dear statalist i'm running Fe model regression on panel data, how could interpret the B1 about the mean age var? and is there a command on STATA which allows the rregression results whit a different...
View ArticleTesting statistical differences of survey data with population data
Dear Forum members, I would like to test if a categorical survey variable is statistically different from population (i.e. census) data. I found the -csgof- command which would be a good solution....
View ArticleComparing coefficients of multiple equations after ivregress
I am trying to formally test the hypothesis concerning equality of coefficients in two different specifications, with panel data. So I have 2 equations estimated separately: ivregress 2sls Y X1...
View ArticleInteraction terms
Dear Stata experts, I have some problems understanding the regression outputs with interactions in Stata. I have 4 variables, 1 Dummy and 3 continuous, and want to interact them in a specific way (1...
View ArticleRolling regression for estimating persistence in a time series
I have to construct a measure of persistence of a time series and I want to use rolling regression to do so. In particular, I'm studying inflation persistence, and I want to replicate the following...
View ArticleHeckman Test of Selection Variable
Hello! I'm estimating a heckman selection model "by hand" i.e. not with the heckman command. Reasons for this: - I need fixed effects in the first stage and while i.xxx is working, fixed effects in...
View ArticleXtoverid
Hello, could you please advise me regarding the error xtoverid Error - saved RE estimates are degenerate (sigma_u=0) and equivalent to pooled OLS after xtoverid ? Thank you, Alexa
View ArticleDiscriminant Analysis
Hey everyone, my goal is to calculate a credit score for new clients and define with the help of the score a group membership. The higher the score the better the rating. Therefore I want to use the...
View ArticleMerge different variables with same variable name
Halo everybody, I'm trying to merge varios datasets using merge command. Datasets contain company-informations for year x. Unfortunately despite beeing sets of different years the names of variable are...
View Articleestimate correlated random slopes models with unbalanced panel
I am trying to estimate a correlated random slopes model with an unbalanced panel with Stata 14. The model is described by Woolridge in section 3 of this paper (also attached) Wooldridge, Jeffrey M....
View ArticleImporting multiple excel sheets in dta format
Hi all, I am importing multiple sheets from excel file and saving in each worksheet respectively in dataset (.dta format). But in my revise excel sheet of the same data there are some sheets that are...
View ArticleDegrees of freedom issue for xtreg with vce(cluster)?
I came across a discussion of the paper by Alywyn Young that is linked below on Andrew Gelman's blog: http://personal.lse.ac.uk/YoungA/ChannellingFisher.pdf. Young points out on pages 20 and 21 that...
View ArticleUsing lincom with logistic regression and two categorical variables
Hello I am a novice STATA user. I have a simple regression model looking at the effect of a binary variable (gender) and a categorical variable (age group (1=<65 2=65-74, 3=75+) on a dependent...
View ArticleMerge: two key variables
Hello, I have 2 data sets: dataset1 and dataset2, where the sample of the dataset2 is a subsample of the one from dataset1. I would like to merge both datasets so I can have a final one with more...
View ArticleCreating a sequence using two variables
I am using Stata 12 on Windows 8.1. I would like to create the variable seq in the sample data below. For each date, the sequence should be the same, 1 for the first date, 2 for the second date, etc...
View Articlenewey2 vs. xtreg
Hello. What is the difference ( except for autocorrelation up to n lag) between newey2 and xtreg , as I should get the same results between newey2 ..., lag(0) and xtreg ..., robust and I dont. I get...
View ArticleCreating a sequence using two variables
Tom Guidry posted this on Sandbox: I am using Stata 12 on Windows 8.1. I would like to create the variable seq in the sample data below. For each date, the sequence should be the same, 1 for the first...
View ArticleHow to use for loop to generate a match among four variables
Hello everyone, I am woking on residence data from a university. The full dataset include several residences with rooms and appartments for one to 4 students - a range of single rooms up to quadruple...
View ArticleQuestions regarding interpretation of linear mixed model
Hello, I am using Stata/MP 14.1 for Mac. I've been trying to analyze my data from repeated measure design experiment (n=6) with linear mixed models (Command mixed) under the setting like below. -...
View Article