Hi, i'm new to markdown, so this is difficult to me. I'm working with feols function from the package "fixest" to estimate a fixed effects model. My code runs fine in R scrip and rmd, but when I try etable to export my results I only get Latex code. My code looks something like this (here I use airquality as an example):
---
title: "Untitled"
author: "me"
date: '2022-07-16'
output:
pdf_document: default
html_document: default
---
{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
{r}
library(fixest)
library(tinytex)
est1 = feols(Ozone ~ i(Month) / Wind + Temp, data = airquality)
est2 = feols(Ozone ~ i(Month, Wind) + Temp | Month, data = airquality)
etable(est1,est2, tex = T)
I do not have MikTex installed, but I have Tinitex, using:
install.packages('tinytex')
tinytex::install_tinytex()
I would greatly appreciate your help.
P.D. I have the newest version of R.