
Recommend an appropriate statistical or ML method (AI agent)
Source:R/agent-recommend.R
tr_recommend_method.RdUses an LLM to inspect the structure of a clinical dataset and suggest an appropriate statistical or machine learning approach, with reasoning. This is an assistive tool, not a replacement for expert judgment.
Arguments
- data
A data frame, typically the output of
tr_load_clinical().- outcome
Character. Name of the outcome column of interest.
- context
Optional character string giving extra clinical context (e.g. "predicting 30-day readmission in heart failure patients").