Reto Hofstetter

Course location

Home university

University of St.Gallen
University of St.Gallen

Course location

University of St.Gallen

Home university

University of St.Gallen
Hofstetter-Reto
Professor Reto Hofstetter received a PhD, MA, and BA in business administration and economics from the University of Bern Switzerland, and also a BA in computer science from the University of Applied Sciences of Bern. Professor Hofstetter is currently a Professor of Marketing at the Faculty of Economics and Management of the University of Lucerne. Before Lucerne, he was faculty member at the Università della Svizzera italiana (USI) and served as assistant professor at the University of St. Gallen. He visited the Wharton School and Stanford University as part of his research. Professor Hofstetter’s current research focuses on digital consumer behavior, crowdsourcing, creativity, self-presentation, -reporting and disclosure. His research has been published in top-tier academic journals, including the Journal of Marketing Research, Management Science, or PNAS and has been featured by Harvard Business Review or Forbes.

Courses taught by this instructor

Course

Description

Instructor

Level

Next course

Location

Course

Description

Instructor

Level

Location

Next course

AI-Assisted Data Collection for PhD Research: From Scraping to Research Apps with R

A recurring challenge in doctoral research is turning a research question into a reliable and reproducible process for collecting online data. This course addresses that challenge. Participants learn to find and collect relevant data (with a focus on web data), assess the results, and build an interactive research app around a data-collection problem from their own thesis. We begin with R foundations and how the web works. Participants learn to identify online data sources, access APIs, write basic scrapers, and work with HTML, CSS, JSON, and XML. They also learn how to use LLMs from R and how to structure, store, and prepare collected data for analysis, including a short introduction to relational databases. Building on these foundations, participants create AI agents in R to discover sources and collect data using defined tools, such as APIs, MCP-connected services, and scraping functions. They learn to inspect the sources and records an agent returns, assess data quality and coverage, and consider the limitations and ethical implications of automated collection. The course also introduces AI methods for extracting and structuring information from text and images. Finally, participants use R, Shiny, LLMs, and AI-assisted app development to build a simple research app linked to their thesis. The app will support part of their data-collection workflow—for example, by helping users specify a collection task, run or review an agent, validate records, explore the collected data, or export it for analysis. Each participant presents a research app prototype and its data-collection workflow at the end of the course.
...

...

B

2027

AI-Assisted Data Collection for PhD Research: From Scraping to Research Apps with R

A recurring challenge in doctoral research is turning a research question into a reliable and reproducible process for collecting online data. This course addresses that challenge. Participants learn to find and collect relevant data (with a focus on web data), assess the results, and build an interactive research app around a data-collection problem from their own thesis. We begin with R foundations and how the web works. Participants learn to identify online data sources, access APIs, write basic scrapers, and work with HTML, CSS, JSON, and XML. They also learn how to use LLMs from R and how to structure, store, and prepare collected data for analysis, including a short introduction to relational databases. Building on these foundations, participants create AI agents in R to discover sources and collect data using defined tools, such as APIs, MCP-connected services, and scraping functions. They learn to inspect the sources and records an agent returns, assess data quality and coverage, and consider the limitations and ethical implications of automated collection. The course also introduces AI methods for extracting and structuring information from text and images. Finally, participants use R, Shiny, LLMs, and AI-assisted app development to build a simple research app linked to their thesis. The app will support part of their data-collection workflow—for example, by helping users specify a collection task, run or review an agent, validate records, explore the collected data, or export it for analysis. Each participant presents a research app prototype and its data-collection workflow at the end of the course.
...

...