Automatic generation of personalized answers to a problem set using L A TEX & Stata



Similar documents
<next> <PDF version> Tutorial: Automated table generation and reporting with Stata. Ben Jann, ETH Zurich,

Master Module SNET2 Seminar & Project Summer Term 2010

<next> Italian Stata Users Group meeting. Tutorial: Output processing and automatic reporting with Stata. Ben Jann, ETH Zurich,

Personal information. Taborda, Rodrigo. Education. Surname(s) / First name(s)

Problems and Measures Regarding Waste 1 Management and 3R Era of public health improvement Situation subsequent to the Meiji Restoration

A Tutorial on Creating Presentations Using Beamer

Integrating LaTeX and Moodle Questionnaires

CINTIA MONICA MARTINEZ

Stata web services: Toward Stata-based healthcare informatics applications integrated

Alexander Zlotnik. Ramon y Cajal University Hospital. Stata is a registered trademark of StataCorp LP, College Station, TX, USA.

Usage and importance of DASP in Stata

Development of the nomolog program and its evolution

A WORK IN PROGRESS Fabian Partida, Othello School District Migrant Graduation Specialist

A self-directed Virtual Learning Environment: Mi propio jefe (My own boss)

LITERACY Classroom Arrangement. Bilingual/ESL Program. Pilar Moreno-Recio

F nest. Financial Intermediation Network of European Studies. Data and Sample Management with Stata

Example 3.3. Analysis of data in Gretl: descriptive statistics. Pilar González and Susan Orbe

Documento de Trabajo. Trade Liberalization and Wage Inequality. Time Series Evidence from Chile.

Pablo Fleiss. 2005: Suficiencia Investigadora - Diploma de Estudios Avanzados. Universitat Pompeu Fabra, Barcelona, Spain.

RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization September 22, 2004

Spanish 4412: Spanish in Contact Meets: Pre-requisites: Instructor: Course Description Course Aims: Learning Outcomes:

How to embed fonts in a PDF from LaTeX

Entry to Year 7 - Information for Parents

From the help desk: hurdle models

Manejo Basico del Servidor de Aplicaciones WebSphere Application Server 6.0

Presentations Using L A TEX

Teaching guide for the course: BUSINESS STATISTICS I

2.5.3 Use basic database skills to enter information in a database

LATEX Document Management with Subversion

El poder de la Programación de Excel y Visual Basic User Review --->>> Enter Here More Details => VISIT HERE

MODEL I: DRINK REGRESSED ON GPA & MALE, WITHOUT CENTERING

ECCAIRS 5 Instalación

Marcos Sanso-Navarro Curriculum Vitae February 2015

Propiedades del esquema del Documento XML de envío:

CÓMO SE VEN LAS PREGUNTAS DEL SMARTER? E X A M E N C O M P U TA C I O N A L A D A P TA B L E : I N G L É S

Official University Degree. Postgraduate Program. Master in Economics. Madrid. PhD in Economics. Master/120 ECTS. PhD Program.

Empire State College s degree program in the Dominican Republic is for YOU!

Teaching guide ECONOMETRICS

Teaching guide for the course: HUMAN RESOURCE MANAGEMENT. Degree program: Degree in Business Administration and Management

Adverse Impact and Test Validation Book Series: Multiple Regression. Introduction. Comparison of Compensation using

R for Clinical Trial Reporting: Reproducible Research, Quality and Validation

Guide 1. Entering into the business world

Using Computer Programs for Quantitative Data Analysis

Computational Mathematics with Python

Spanish GCSE Student Guide

Stata Walkthrough 4: Regression, Prediction, and Forecasting

Introduction to Scientific Computing

Pontificia Universidad Católica del Ecuador Facultad de Comunicación, Lingüística y Literatura Escuela de Lenguas Sección de Inglés

Natural Gas market in Spain before market liberalization. Jesús Muñoz San Miguel. Yolanda Hinojosa Bergillos

DIPLOMADO EN BASE DE DATOS

Equity and Fixed Income

1. DESCRIPCIÓN DE WEB SERVICES DE INTERCAMBIO DE DATOS CON NOTARIOS

Department of Mathematics and Computer Science Eastern Illinois University 600 Lincoln Avenue Charleston, IL

New words to remember

Dirección de Tecnologías de Información COM Web and Social Media Analytics 22 de Septiembre de 2010

CURRICULUM VITAE - CARLOS POMBO (Updated: December/2013) University of Illinois at Urbana-Champaign, Ph.D., Economics, May 1999

Trade Flows and Trade Policy Analysis. October 2013 Dhaka, Bangladesh

Cayuga Community College Auburn High School

eclips Design Packet Middle School and High School NASA Real World: Mathematics (Grades 6-8) NASA Launchpad (Grades 9-12) Educational Product

Computational Mathematics with Python

Computational Mathematics with Python

chemscheme Support for chemical schemes

2 Organizations and Organizational Structures 2.1 Functional and Project Organizations, Typical Goals and Performance Measures

Credit Unit. 4-1 Introduction to Credit 4-2 Loans 4-3 Loan Calculations & Regression 4-4 Credit Cards 4-5 Credit Card Statements

Creation of Computer Aided Manufacturing software from Computer Aided Design software in the milling process

Curriculum Vitae Lic. José Rafael Pino Rusconi Chio +52 (998)

NEW NEW. Your Critical Thinking Advocate TEXAS CURRICULUM FOCUSED INFORMATIONAL READING BOOKS SOCIAL STUDIES & SCIENCE WORKBOOKS

MODELO DE GUÍA DOCENTE PARA UNA ASIGNATURA 1 FACULTAD DE LETRAS

ebooks: Going Digital In this time of migration from print to digital content, knowledge is power. Are you equipped to navigate the world of ebooks?

Motorcycle as a new massive mode of urban transportation: a challenge for many LA countries, cities and citizens

(La)TeX Support for manuscript preparation. Conference Paper Management System

Using outreg2 to report regression output, descriptive statistics, frequencies and basic crosstabulations (v1.6 draft)

CVM y resumen de error del hardware UVM

The 6 Secrets to Successful Options Trading

7 Steps to Business Success

Econometrics I: Econometric Methods

Stata logistic regression nomogram generator

Training Programme in Spanish as a Foreign Language. Syllabus Beginner Level Spanish

Syllabus for MATH 191 MATH 191 Topics in Data Science: Algorithms and Mathematical Foundations Department of Mathematics, UCLA Fall Quarter 2015

HEALTH AND ENVIRONMENTAL ECONOMICS, 60 HIGHER EDUCATION CREDITS

Transcription:

Automatic generation of personalized answers to a problem set using L A TEX & Stata Mexican Stata users group - Mayo 3, 2013 Rodrigo Taborda rodrigo.taborda@urosario.edu.co Facultad de Economía Universidad del Rosario - Bogotá

LATEX - Stata 2/11 Introducción Introduction Econometrics or statistics course implies undertaking applied analysis of data. The usual approach is to offer a problem set to students based on a single database. The purpose is to make students practice close to reality problems, and assess their knowledge and understanding. Several books and websites provide databases for these purposes.

LATEX - Stata 3/11 Issue: 1 problem set, 1 database, 1 answer Issue: 1 problem set, 1 database, 1 answer On the good side. Reaching the right answer is taken as a positive work and understanding. Reinforces the student who did the work. Thre is a sole right answer. Ease of grading. On the bad side. Copy and paste the answers an analysis. One student doing the right work is enough for cheaters to take advantage (copy and paste). When the database is popular (book or website), this issue takes a world wide dimension. Regression analysis in books always shows positive outcomes and easy answers (a bit unrealistic). The whole purpose of the assessment vanishes. We end up knowing even less if the student learned or not.

LATEX - Stata 4/11 Solution: 1 problem set, n databases, n answers Solution: 1 problem set, n databases, n answers Combine the use of Stata and L A TEX. Take advantage that both sofware generate an outcome out of commands. Stata uses:.do. L A TEXuses:.tex. Take advantage of writing a L A TEXfrom Stata and the capabilities of the latter in processing an external sofware.

LATEX - Stata 5/11 Solution: 1 problem set, n databases, n answers How? How? Gini and Pasquini (2006) clearly describe how to communicate Stata and L A TEX.

LATEX - Stata 6/11 Solution: 1 problem set, n databases, n answers How? How? 1. Write a.do solving the problem set. 2..do includes commands to capture the outcome from Stata in local, graphs, outreg2, sutex, etc. 3..do can write commands in a.tex file, including the results from the statistics above. 4..do can invoque a.tex compiler and transform to.pdf.

LATEX - Stata 7/11 Pros and cons On the good side The grading and assessment will evaluate the answer from a unique y correct, which is known beforehand. Reinformces the work done by a good student. Ease of grading. Students can not copy certain set of results. Students performs a piece of analysis kupon an imperfect database, allowing him to go deeper into the regression results. Zero mistakes in reporting result. Zero effort in generate 2, 20 or 200 problem set answers. You only have to write the answer once.

LATEX - Stata 8/11 Pros and cons On the bad side Control and care of the.do and.tex files. Time devoted to write program can be long, however to repeat it is a matter of minutes.

LATEX - Stata 9/11 Example.do Ejemplo /*DEFINE FIN DE COMANDO STATA*/ #delimit ; /*DEFINE SENDERO PARA STATA*/ cd C:\rodrigo\project lst latex stata text; /*CARGAR DATOS*/; /*GENERACION MUESTRA 5% DE BASE DE DATOS ORIGINAL*/; /*PARA CADA ESTUDIANTE*/; local estudiante "Pedro Pablo"; foreach estudiante in estudiante {; sysuse nlsw88, clear; sample 5; save data\nlsw88 estudiante.dta, replace; }; /*INICIA DOCUMENTO LATEX*/; local estudiante "Pedro Pablo"; foreach estudiante in estudiante {; file open reporte estudiante using reporte estudiante.tex, write replace; file write reporte estudiante "\documentclass{article}" n; file write reporte estudiante "\usepackage{graphicx}" n; file write reporte estudiante "\setlength{\voffset}{-1in}" n; file write reporte estudiante "\setlength{\textheight}{24.2cm}" n;

LATEX - Stata 10/11 Example.do Ejemplo /*ESCRIBIR DOCUMENTO LATEX*/; file write reporte estudiante "\begin{centering}" n n; file write reporte estudiante "\textbf{nombre estudiante:} estudiante " n n; file write reporte estudiante "\textbf{respuestas curso econometr\ ia}" n n; file write reporte estudiante "\end{centering}" n n; file write reporte estudiante n n; file write reporte estudiante n n; file write reporte estudiante "\hrulefill " n n; /*LLAMAR BASE DE DATOS*/; use data\nlsw88 estudiante.dta, clear; /*PREGUNTA 1*/; /*TABLA CON ESTADISTICAS DESCRIPTIVAS*/; sutex age wage hours ttl exp tenure, labels minmax title(ëstadísticas descriptivas") placement(h!) key(tab:des estudiante ) file(des estudiante.tex) replace; file write reporte estudiante "\noindent \textbf{pregunta 1.}Estadísticas desivas. " n n; file write reporte estudiante "\input{c:/rodrigo/project lst latex stata text/des estudiante.tex}" n n; /*FINALIZA DOCUMENTO LATEX*/; file write reporte estudiante "\end{document}" n; file close reporte estudiante ;

LATEX - Stata 11/11 Example.do Ejemplo /*COMPILA LATEX*/; shell pdflatex reporte estudiante.tex; shell bibtex reporte estudiante.tex; shell pdflatex reporte estudiante.tex; shell pdflatex reporte estudiante.tex; /*ABRE ARCHIVO*/; winexec C:\Program Files\Adobe\Reader 10.0\Reader\AcroRd32.exe C:\rodrigo\project lst latex stata text\reporte estudiante.pdf ;