Skip to content

Commit

Permalink
DS-4360 Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwishart committed Apr 12, 2023
1 parent b729063 commit f825187
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
11 changes: 7 additions & 4 deletions R/estimationdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ EstimationData <- function(formula = NULL,
#' the dataset it originates from and others.
#' @param x A \code{data.frame} containing the data to be templated.
#' @param outcome.variable An optional name of the outcome variable. Should be a character(1L) string.
#' If specified, the outcome variable will be omitted from the list.
#' @return A list of lists. Each sublist contains information about each variable from the input
#' data frame. If the outcome.variable argument is provided, that variable should be
#' omitted from the list. Each sublist describes the variable with the following elements:
#' If specified it will be set as the \code{"outcome.name"} attribute in the
#' returned list (see below). If not specified, then the attribute will
#' be set to \code{NA_character_}.
#' @return A list of lists. The list will have an attributes called \code{"outcome.name"} which will be
#' set to the value of the \code{outcome.variable} argument or \code{NA_character_} if not
#' provided. Each sublist contains information about each variable from the input
#' \code{data.frame} with the following elements:
#' \itemize{
#' \item type: The type of the variable (numeric or factor)
#' \item label: The label of the variable
Expand Down
11 changes: 7 additions & 4 deletions man/EstimationDataTemplate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f825187

Please sign in to comment.