I would like to put the following code:

Code:
sjlog using "${route_sjlog_files}\example_35" , replace 
clear all
use https://www.stata-press.com/data/r16/clogitid
clogit y x1 x2, group(id) tech(wrong_tech)
sjlog close , replace
Into a LaTeX document using stlog environment as follows:

Code:
\begin{stlog}
   \input{stlog/example_35.log.tex} \nullskip
\end{stlog}
Unfortunately, it has an error (on purpose) that I want to use for illustration, and obviously, the first chunk of code does not compile entirely; hence the file example_35 is not created.

I would like to have the following on the file example_35:

Code:
. clear all
. use https://www.stata-press.com/data/r16/clogitid
. clogit y x1 x2, group(id) tech(wrong_optim)
wrong_optim is not a valid argument of technique() option
r(198);
Any clue on how to perform this?

Thank you in advance,

Álvaro
Stata 16.1 MP
Win10/Linux Mint 19.1
https://alvarogutyerrez.github.io/