Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

import excel "H:\Work From Home_SSS\Panel data.

xlsx", sheet("Panel data") firstrow

egen state_p=group( States)

xtset state_p Time, yearly

xtsum GSDP Elect_Supply

xtreg GSDP Elect_Supply,fe

save "H:\Work From Home_SSS\panel data gsdp.dta"

save "H:\Work From Home_SSS\panel data gsdp.dta", replace

putexcel set "C:\Users\shyam\Desktop\stata result.xlsx"

putdocx table=table 1 etable

putdocx begin

putdocx save gsdppanelresult.docx

xtreg GSDP Elect_Supply,fe

putdocx table Panel results = etable

putdocx table tbl2 = etable

putdocx table panelresult = etable

putdocx set "C:\Users\shyam\Desktop\stata result.docs"

putdocx save test

clear output

clear result

xtreg GSDP Elect_Supply,fe vce(robust) (with robust errors)


xtreg GSDP Elect_Supply,fe vce(robust)

xtreg GSDP Elect_Supply,re

You might also like