Hi,
I have a panel data (firm-year level). Anyone knows how to construct Peer firm average, which is the average of all firms within an industry-year combination, excluding the ith observation (excluding the focal firm and only include all the other firms in the industry)? Industries are defined by 3-digit SIC codes.
I only know how to calculate the average of all the firms in the industry. bys sic3 year: egen PeerAverage=mean(Variable).
Thanks in advance!
Related Posts with Peer firm average
Testing for strong factoral invariance in longitudinal confirmatory factor analysisI have built a panel dataset out of a yearly government survey that measures the quality of an insti…
Manually creating/editing/storing estimates for esttabI am running a series of loops that try out all combinations of Stata's new lasso functions dsregres…
Standard error of the residuals with vce(robust)Hi All, I am interested in getting the standard error of the residuals after using regress with vce…
Missing Values GeneratedHello, I have panel data for 820 companies for 19 years i.e. 15580 observations (820*). I ran the fo…
Question about xtitle of graphDear all,@Nick Cox I want to move the xtitle to the right and the above of the xaxis.This is my data…
Subscribe to:
Post Comments (Atom)
0 Response to Peer firm average
Post a Comment