I would like to get latex table of regression results by using following comments;
Analysis1 <- glm(y~x, data=data1, family=quasibinomial(link="logit"))
summary(Analysis1)
texreg(list(Analysis1),dcolumn = TRUE, booktabs = TRUE,
use.packages = TRUE, label = "tab:1",
caption = "Regression Estimation Results",float.pos = "hb")
However, this "texreg" commands gives raw output instead of clean table;
\begin{table}[ht]
\centering
\begin{tabular}{rrrrr}
\hline
& Estimate & Std. Error & t value & Pr($>$$|$t$|$) \\
\hline
(Intercept) & 0.7686 & 0.0125 & 61.37 & 0.0000 \\
x & -0.0166 & 0.0069 & -2.41 & 0.0170 \\
\hline
\end{tabular}
\end{table}
Could you please help me how I can get clean regression results table by using texreg command in R?
You did not provide a minimal self-contained example. However, if I use the example provided on the
glm
help page, it does seem to work. See the following result.This gives the following output, which is, I believe, correct.
If you get a different output using the same code, please report back which
texreg
version you are using. If you are using the same version but your own example produces a result that looks different, please provide a minimal self-contained example.