Top "Stata" questions

Stata is a commercial, general-purpose statistical software.

Convert a dta file to csv without Stata software

Is there a way to convert a dta file to a csv? I do not have a version of Stata …

csv stata file-conversion
How to count the number of observations in R like Stata command count

aaa<- data.frame(sex=c(1,1,2,2,1,1), group1=c(1,2,1,2,2,2),group2=c("A","B","A","B","A","B")) stata command: count …

r stata
Loop over string variables in R

When programming in Stata I often find myself using the loop index in the programming. For example, I'll loop over …

r statistics stata
Break a command into several lines in do-file in Stata

I want to run the keep command in a do-file in Stata 12: keep a1 a2 a3 a4 a5 b1 b2 …

command-line stata break
Read Stata 13 file in R

Is there a way to read a Stata version 13 dataset file in R? I have tried to do the following: &…

r stata
What's the difference between gen and egen in Stata 12?

Is there a reason why there are two different commands to generate a new variable? Is there a simple way …

stata
How do I convert string variables to numeric variables in Stata?

I have two variables in Stata, both numeric variables that have somehow been recorded as string variables. I need them …

string variables numeric stata
Use esttab to generate summary statistics by group with columns for mean difference and significance

I would like to use esttab (ssc install estout) to generate summary statistics by group with columns for the mean …

stata
Stata: how to change a string variable to a date?

I'm new to Stata, and I'm wondering how can I change a string variable which contains a date to a …

string date format stata
Regression with Heteroskedasticity Corrected Standard Errors

I would like to find the R implementation that most closely resembles Stata output for fitting a Least Squares Regression …

r stata