Quantcast
Channel: Statistics Help @ Talk Stats Forum - Stata
Browsing all 800 articles
Browse latest View live

Creating Pair IDs in Stata

Dear All, I have a dataset with 178 importing countries and 185 exporting countries for 50 years (1962 - 2011). I want to create country pair dummies. I use the following commands egen pairid =...

View Article


How can I graph a continuous variable changing over time?

Hi, I'm trying to create a graph showing the mean value of a numerical continuous variable (and possibly its standard deviation) among two different groups (0/1). The same variable has been measured at...

View Article


Reverse cumulative distribution plot

I have two questions regarding reverse cumulative distribution graphs. I have data on antibody concentration from two groups of people (vacc. vs unvacc). I want to plot these values with reverse...

View Article

combining multiple variables into a single variable

Hi, How do I go about this apparently simple task in STATA? I need to combine 10 variable (with a yes/no answer) into a single one. I am battling to understand the example in the user guide. thanks

View Article

cluster (undirectedcode)

Hi all, I'm supposed to replicate and analyse an article for one of my class. The article I use have a do file with it and the regression in it is : reg var1 var2 var3, cluster(undirectedcode) I cant...

View Article


amount of sleep from hours, minutes, and am/pm variables

Hello all, I am trying to determine the total amount of sleep (in minutes) that a respondent typically gets. The data are based on two questions that produced six variables: "what time do you usually...

View Article

Automatic cross-tabulation percentage calculations

Hey guys. So this is a bit of a "luxury" problem, but I've been thinking about it none the less. I have data on an individual level and I'm working on a dataset on makrolevel. Both the datasets have 31...

View Article

Need Help with Country Pair and Year Dummies

Hello Guys, I am working with panel data with 191 importer and 191 exporter countries across 50 year. I want to make importeryear and exporteryear dummies but even with a fast computer, I am unable to...

View Article


Question on Cox and Logistic regression

I have a study limited in 1 year (365 days) and the failure event is in the case of one subject dies before 365 days. In Cox proportional hazard model, the informations of the patiens survived are used...

View Article


Rescale an index in stata

This is probably simple but i cant find it in my textbooks... How do i rescale an index ? if for example i want to redefine the x axis from showing 1-10 to showing 1-100 instead ? thanks

View Article

I reshaped long and now there are more categories in my encoded variables!

Hi :) I reshaped my dataset and now my encoded variables have more categories than they had. What may be the cause? (PERS_ID is the identifier for the person while STU_ID identifies the identification...

View Article

Binning data in Stata 9.1

Hi, Could anyone tell me how to bin data in Stata 9? I want to construct a table for Fisher's exact test and can't seem to get the coding right. Thanks!

View Article

Convert annual data to quarterly

Hi all, I have an annual time series and I tried ti use the command "findit Denton" to convert the data to quarterly. So, anyone can help to how to execute Denton method. Thank at advanced

View Article


Loop do-file with a few adjustments

Hey guys. So I've made a long do-file and I was wondering if there were a clever way to repeat parts of the do-file with a few changes? I'm doing a series of cross-national tests and I want to see what...

View Article

Bar order in Stata

Hello, I wanted to ask if anyone knows how to customize the bar order in the bars using the catplot command. In other words, I am interested in creating a graph with catplot whereby the values are in...

View Article


xtmixed covariances: why it doesn't work??

Hi, I'm trying for weeks to run the following model: mi estimate, variance : xtmixed MathG5 MathG4 , || classID:, covariance(unstructured) || studentID: , covariance(unstructured) This is only the...

View Article

data transformation for negative values to get normality

Hi all, I am working with negative and positive values for a variable (range data beetwen -8.00 - 10.00), lamentably this data is nor normal according Kolmogorov smirnov test... I am trying to...

View Article


Panel Cointegrated data analysis

I am currently working on Panel data of Seven African stockmarkets and need Seemingly Unrelated Regression Estimation procedures in STATA. I will need the STATA codes for either Simulation or...

View Article

insufficient observations, fixed effect

hi when i estimate fixed effects the error "insufficient observations" occur. does anyone how i can solve this problem? xtset lfdk wave xtreg CCHappy sportsclub MCSex MEdu MInc MUrban CAge, fe storage...

View Article

Non linear regression

Happy new year, in my master thesis i want to calculate a non linear regression. when i have a look at the lowess smother, i see the dependency is non linear. It looks pretty much like this:...

View Article
Browsing all 800 articles
Browse latest View live


Latest Images