Mean calculations of multiple variables depending on two other variables.
Hi Statalist members I am using Stata14.1/IC I am working on a project on vessels and different image modalities where we calculate the correlation between the structures seen in the modalities. My...
View ArticleDifferences between xi. and areg
Hello Everyone I got a question regarding using dummies. My dataset is not neither panel data nor time-series data, so I can't use fixed effects. Following some publications, I also want to use "Year...
View ArticleFilling in a missing year using interpolation?
I have data by different counties for the years 1981 and 2011. Each variable is in it's own column. For example: One column is Population (1981), with values for multiple counties. Another column is...
View Articlecombine strings to create path+file name
I want to combine strings to create a path including the filename in one string, in order to use it in the use command. For example: Code: scalar pathname = "c:\data\stata\" scalar filename =...
View ArticleMultiple categories in bar chart next to each other
Dear Stata users, I am struggling with a bar chart that I cannot figure out how to create in Stata. I have tried the "over() over()" option, but it didn't work for me. I need to arrive at something...
View Articledropped observations - Panel dataset
Dear Statalists, I'd like to ask to you an advice for empirical analysis included in my Master Thesis. I have a balanced panel dataset with 115 countries and 9 variables observed for 19 years. I am...
View ArticleCreating medians per industry group in a panel data set
Dear all, We are having some problems calculating a variable. What we would like to do is the following: the median industry book leverage. This could be done in the following way:We would like Stata...
View Articledate string: extraction of correct dates
Dear community, I have date strings exported from surveymonkey in the following format: Code: . list date1 in 1 +---------------------+ | date1 | |---------------------| 1. | 10/11/2015 13:04:11 | All...
View Articlechained month-to-month price index
Hello all, I want to calculate a chained month-to-month price index from individual month-to-month indexes. A small part of the data looks like this: mtomindex period 1.000 2009m1 1.125 2009m2 1.089...
View ArticleMultivatiate White Noise autocorrelation test
Hi, I am trying to perform the LM test for residual autocorrelation avaible in the VAR procedure over a set of residuals of a SUR model, therefore I need to estimate the VAR to perform the test but the...
View Articlextset problem
Hi I am looking at the impact of maths lessons on students results and i would like to use the following command: xtset results time but I get: "repeated time values within panel" as I has multiple...
View Articleesttab outputs - R-sq: within, between, overall
Hi, I would like to know the command for outputting R-squared( within, between, overall) for random effects estimation using command 'esttab'. Can you please advise? Regards, Victoria
View ArticleGenerating issue
Hi Statalist, I have the following data: country 1 .............country 2 1. France.............. Genmany 2. Germany ...........France 3. Columbia ...........Peru 4. Peru ................Columbia And...
View ArticleOmitted variables
Hi, Stata users! I am studying the effects of political parties on work preferences, using survey data. My code is: oprobit likecompetitivejobs left right I have three independent variables: left,...
View Articlenon linear relationship
I am trying to investigate the effect of profitability on firm's cash. I constructed two samples ; one for big firms and second for small firms. I tried to find the if non liner relationship exists....
View Articleinsheetjson.ado for reading google maps api
Using the Google Maps API, it is possible to retrieve travel distances and times between a number of points. They are received by Stata in the json-format, which can be read by the Stata-routine...
View Articlemultiple endogenous variable
How to estimate the following regression when edu and exper are endogenous variables. Besides, age and age2 are considered as instruments for exper and exper2. Furthermore, edu should be regressed on...
View ArticleInterpreting Diff-in-Diff regression coefficients
Hello people, sorry about the silly question, but this is blowing my mind. I want to estimate a diff-in-diff model in Stata, say about the implementation of a policy in New Jersey in November. Suppose...
View ArticleOrder variables, vaules with household id
Dear Statlist, I am building household data but I have problems with ordering of values across each household id for example: data look like this now: Code: hid code/food food/Qkg food/Ex 1 apple 3 6,9...
View ArticleHow to read DBF files into stata 13.1
Dear Statalister, I trying to import DBF file into Stata with using this command: Code: shp2dta using Data_401, data("Data_2") coor("Data_2") the name of DBF file is Data_401 But might be I missed...
View Article