← Back to Documentation
Prompt Engineering
Write effective prompts to get the best results from Sytra.
1. Be Specific About Data
Always reference your dataset and variable names explicitly.
❌ VAGUE
"Run a regression"
✓ SPECIFIC
"Run a regression of log_wage on education and experience using nlsw88.dta"
2. Specify Output Format
Tell Sytra how you want results presented.
"...and export the results to a LaTeX table with three decimal places"
3. Include Statistical Details
Mention clustering, fixed effects, or other specifications.
"...cluster standard errors by state and include year fixed effects"
Example Prompts
Clean the auto.dta dataset by dropping missing values in price and mpg, then create a log_price variable
Run a difference-in-differences regression with treatment, post, and their interaction, clustering by firm
Generate a scatter plot of price vs mpg with a fitted line, save as PDF
Estimate a fixed effects model of sales on advertising and price, absorbing firm and year