Top "Stata" questions

Stata is a commercial, general-purpose statistical software.

Stata: using egen group() to create unique identifiers

I have a dataset where each row is a firm, year pair with a firmid that is a string. If …

stata panel-data
Hausman type test in R

I have been using "plm" package of R to do the analysis of panel data. One of the important test …

r stata plm panel-data
Using if qualifier with egen in Stata

I'm using Stata, and I'm trying to compute the average price of firms' rivals in a market. I have data …

stata
R Language: How do I print / see summary statistics for sample subset?

These are some newbie questions about statistical programming for R for which I haven't been able to find an answer …

r statistics stata
Generate variable containing number of characters in a string variable

In a survey dataset I have a string variable (type: str244) with qualitative responses. I want to count the number …

stata
GLM function in R with log link not working

I am using the book "Generalized Linear Models and Extension" by Hardin and Hilbe (second edition, 2007) at the moment. The …

r stata
Logistic regression with robust clustered standard errors in R

A newbie question: does anyone know how to run a logistic regression with clustered standard errors in R? In Stata …

r regression stata
Macros constantly resulting in 'invalid name'

I'm a newcomer to Stata after using R for a long time. I'm trying to perform any action which involves …

stata stata-macros
Time Trend Variable in Balanced Panel Data, Stata

I have some balanced panel data and want to include trend variable into my regression. However, I have 60 districts in 7 …

variables stata trend panel-data
F-test on Fixed Effects in R (Panel Data)

I am trying to do an F-test on the joint significance of fixed effects (individual-specific dummy variables) on a panel …

r stata plm