% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/supervised-trees.R
\name{tl_fit_forest}
\alias{tl_fit_forest}
\title{Fit a random forest model}
\usage{
tl_fit_forest(
  data,
  formula,
  is_classification = FALSE,
  ntree = 500,
  mtry = NULL,
  importance = TRUE,
  ...
)
}
\arguments{
\item{data}{A data frame containing the training data}

\item{formula}{A formula specifying the model}

\item{is_classification}{Logical indicating if this is a
classification problem}

\item{ntree}{Number of trees to grow (default: 500)}

\item{mtry}{Number of variables randomly sampled at each split}

\item{importance}{Whether to compute variable importance (default: TRUE)}

\item{...}{Additional arguments to pass to randomForest()}
}
\value{
A fitted random forest model
}
\description{
Fit a random forest model
}
\keyword{internal}
