These functions use the active LLM to produce Dutch-language text based on data from the Medical Epidemiology department. Each call uses an isolated chat context so the main conversation history is not affected.
llm_describe() writes a Dutch epidemiological description of a dataset.
llm_interpret() interprets patterns and suggests epidemiological explanations.
llm_conclude() writes a Dutch conclusion paragraph from results or data.
A data frame to describe or interpret. Summarised before sending to the LLM; raw rows are never sent verbatim.
Topic or subject of the analysis, e.g. "E. coli resistance".
Time period covered, e.g. "2023-2024".
Geographic region, e.g. "Noord-Nederland" or "Groningen".
Writing tone: "formal" (default) or "accessible".
Approximate length of the output: "short" (1 paragraph),
"medium" (2-3 paragraphs), or "long" (4+ paragraphs).
Logical. If TRUE, re-initiates the LLM before the task call.
Default is FALSE.
Additional arguments passed to initiate_llm().
Optional hypothesis to evaluate against the data.
Optional second data frame for comparison. Also summarised before sending.
A character string with the generated Dutch text.