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

Unicode analyze error - too big file

Hi Guys! I am new in Stata and I have a problem with analyzing and translating dta file encodings by unicode. After typing "unicode analyze mydata.dta" in Stata/SE 15.1 I got that "1 file ignored (too...

View Article


How to do calcuations between different datatypes (double, long, float)?

When I add two numerics/numbers, the result is always rounded to some nonsense. Actually my datatype for pid/hid is "long". With MWE it will give you float, but illustrates the same problem. Code:...

View Article


Panel Data Analysis (Run desired regression)

Dear Specialist First Thanks for your reading. I have a Panel Data set. I treated Region as id variable and Year as time variable. I would like to run a regression in the below format. GVArt = β0 +β1 *...

View Article

Multiple imputation for correlated exposure variables

Hello. I am trying to perform multiple imputation in my dataset using mi impute chained. The dataset has three exposure variables, e.g. smoking at time 1, smoking at time 2, and smoking at time 3. I...

View Article

Table 1 help or test for significant difference

Hello I have a data set in which I am trying to compare longitudinal data from successive pregnancies. each variable I have is coded pregnancy1 or pregnancy 2. With the exception of race/ethnicity all...

View Article


question about xtabond2 output

I am running the below syntax Code: xtabond2 generalcrime l.generalcrime proactivity feb mar apr may jun jul aug sep oct nov dec, gmm( proactivity generalcrime , lag (2 4)) iv( feb mar apr may jun jul...

View Article

Graph data onto a map with spmap

Hi every one, I kind ask for you help. I am running the following shp2dta using /Users/jennyperez/personal/STUDY/maping/e.g./sudamerica_adm2.shp, database(sudamdb) coordinates(sudamcoord) genid(id) and...

View Article

fuzzy match date of birth w/ typos in date of birth

I would like to create an id variable that uniquely identifies people within a dataset that looks like this: Code: * Example generated by -dataex-. To install: ssc install dataex clear input float...

View Article


Handle data with blanks and zeros with PPML

Dear all. I am trying to run a gravity model with PPML. I have a question. It could be simple or the question indeed could be wrong. But I would like to ask you. In my export data I have many blanks...

View Article


figure for standardised diff

Hi folks, I have access to Stata 14. I want to create something like the following figure. What is the best way to go about accomplishing it in Stata? Array Source: Austin PC 2009. Thanks.

View Article

Identifying patterns in survey responses

I have survey data with IDs and responses (0, 25, 50, 75, 100). They are typical Likert scale questions with 5 points. I need to see if there are patterns where participants' choices didn't change...

View Article

Econometrics

I'm having issues with the Stata commands, I'm super new to Stata and still trying to figure out my way with command, if anybody can help or give any sort of command advice I would really appreciate...

View Article

Simple equation by variable

So I am attempting to create a new variable in the following way newvar = var1 - lagvar1 + var2 however given the rudimentary nature of my lag variable it cuts across different companies (var3) and so...

View Article


Varsoc command

Hi guys, I'm new here and I'm having some issues with varsoc command. When I run the command, stata shows me no results in lag 4 (just for FPE) but I don't know why. Should I consider this model...

View Article

Python modules not found even after specifying python_userpath

I am having some trouble getting the new Python integration to work in Stata 16. Specifically, some of my modules are not found even after I specify the python executable file and set the python...

View Article


Sympson's paradox

Hi! Is there a way to visualize simpson's paradox and how to use entropyetc ? It is not really clear to me yet. I am testing the effect of the change in news risk on weekly returns (log). Please find...

View Article

Replace value in many observations and variables

Dear all I have a database of around 50 variables and 200 observations. I would like to replace with the value 0, in those observations that says in the all variables the word 'quantity'. For example,...

View Article


Generating dummy variable conditional to other dummy variable figures

Hi everyone, I have two dummy variables, holder67 and holder30, which are equal to 1 if the value of another variable, COND is equal or above 0.67 and 0.30 respectively. Now I am looking to generate a...

View Article

Finding R squared and Adjusted R squared values on xtreg

Hi Everyone, I am conducting research on panel data, set with xtset command on STATA. xtset company_id fiscalyear panel variable: company_id (unbalanced) time variable: fiscalyear, 1992 to 2018, but...

View Article

Random forests and neural nets in Stata (with Python integration)

Hey all, I wrote a couple Stata packages to do regression or classification with random forests and neural networks (specifically, multi-layer perceptrons) in Stata 16. These programs are basically...

View Article
Browsing all 73624 articles
Browse latest View live


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