Hi,
I'm calculation a regression: reg dep c.age ib1.house ib1.hotel
Then I use a putexcel which works perfect, but instead of getting "4.house" as the cell text I would like to get the value label of house 4, which is "old house" (value 4). I think it's the last line of my command which I need to change, but don't know how or if that's all I need.
putexcel set "results.xls", sheet("all") replace
putexcel A1=("Number of obs") B1=(e(N))
putexcel A2=("F") B2=(e(F))
putexcel A3=("Prob > F") B3=(Ftail(e(df_m), e(df_r), e(F)))
putexcel A4=("R-squared") B4=(e(r2))
putexcel A5=("Adj R-squared") B5=(e(r2_a))
matrix a = r(table)'
matrix a = a[., 1..6]
putexcel A7=matrix(a, names)
I'm calculation a regression: reg dep c.age ib1.house ib1.hotel
Then I use a putexcel which works perfect, but instead of getting "4.house" as the cell text I would like to get the value label of house 4, which is "old house" (value 4). I think it's the last line of my command which I need to change, but don't know how or if that's all I need.
putexcel set "results.xls", sheet("all") replace
putexcel A1=("Number of obs") B1=(e(N))
putexcel A2=("F") B2=(e(F))
putexcel A3=("Prob > F") B3=(Ftail(e(df_m), e(df_r), e(F)))
putexcel A4=("R-squared") B4=(e(r2))
putexcel A5=("Adj R-squared") B5=(e(r2_a))
matrix a = r(table)'
matrix a = a[., 1..6]
putexcel A7=matrix(a, names)
Comment