% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/agent-recommend.R
\name{tr_recommend_method}
\alias{tr_recommend_method}
\title{Recommend an appropriate statistical or ML method (AI agent)}
\usage{
tr_recommend_method(data, outcome, context = NULL)
}
\arguments{
\item{data}{A data frame, typically the output of \code{tr_load_clinical()}.}

\item{outcome}{Character. Name of the outcome column of interest.}

\item{context}{Optional character string giving extra clinical context
(e.g. "predicting 30-day readmission in heart failure patients").}
}
\value{
Invisibly returns the raw text recommendation (character string).
Also prints the recommendation to console.
}
\description{
Uses 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.
}
\examples{
\dontrun{
tr_recommend_method(data, outcome = "disease",
  context = "predicting diabetes onset in adults")
}
}
