Clean up documentation

This commit is contained in:
Joel Therrien 2019-07-23 11:55:46 -07:00
parent 094fb5489e
commit e062d3f441
9 changed files with 18 additions and 12 deletions

View file

@ -8,7 +8,7 @@
#'
#' @param delta A vector of integers detailing the event that occurred. A value
#' of 0 denotes that censoring occurred first and that time was recorded.
#' @param u A vector of numerics detailing the recorded event times (possibly
#' @param u A numeric vector detailing the recorded event times (possibly
#' censored).
#' @param C If the censoring times are known for all observations, they can be
#' included which allows for \code{\link{GrayLogRankSplitFinder}} to be used.

View file

@ -1,7 +1,10 @@
#' Numeric
#'
#' An internal function that converts an R vector of numerics or integers into an R list containing java.lang.Double objects. This method does not need to be used directly by the user, as \code{\link{train}} will automatically handle numeric responses if you're working in the regression settings.
#' An internal function that converts an R vector of numerics or integers into
#' an R list containing java.lang.Double objects. This method does not need to
#' be used directly by the user, as \code{\link{train}} will automatically
#' handle numeric responses if you're working in the regression settings.
#' @param y The R vector of numbers
#' @export
#' @return An R list containing rJava Doubles.

View file

@ -9,8 +9,8 @@
#' @param forest An existing forest.
#' @param numTreesToAdd The number of trees to add.
#' @param savePath If saving the forest, the directory to save to. Default is
#' \code{NULL}. Note that you need to respecify the path if you're modifying a
#' previously saved forest.
#' \code{NULL}. Note that you need to re-specify the path if you're modifying
#' a previously saved forest.
#' @param savePath.overwrite If \code{savePath} is pointing to an existing
#' directory, possibly containing another forest, this specifies what should
#' be done.

View file

@ -10,7 +10,7 @@
#' The user only needs to pass this object into \code{\link{train}} as the
#' \code{forestResponseCombiner} parameter.
#'
#' @param events A vector of integers specifying which competing risk events's
#' @param events A vector of integers specifying which competing risks event
#' functions should be processed. This should correspond to all of the
#' competing risk events that can occur, from 1 to the largest number.
#' @param times An optional numeric vector that forces the output functions to
@ -66,7 +66,7 @@ CR_FunctionCombiner <- function(events, times = NULL){
#' The user only needs to pass this object into \code{\link{train}} as the
#' \code{nodeResponseCombiner} parameter.
#'
#' @param events A vector of integers specifying which competing risk events's
#' @param events A vector of integers specifying which competing risks event
#' functions should be processed. This should correspond to all of the
#' competing risk events that can occur, from 1 to the largest number.
#' @export

View file

@ -7,7 +7,7 @@
CR_FunctionCombiner(events, times = NULL)
}
\arguments{
\item{events}{A vector of integers specifying which competing risk events's
\item{events}{A vector of integers specifying which competing risks event
functions should be processed. This should correspond to all of the
competing risk events that can occur, from 1 to the largest number.}

View file

@ -10,7 +10,7 @@ CR_Response(delta, u, C = NULL)
\item{delta}{A vector of integers detailing the event that occurred. A value
of 0 denotes that censoring occurred first and that time was recorded.}
\item{u}{A vector of numerics detailing the recorded event times (possibly
\item{u}{A numeric vector detailing the recorded event times (possibly
censored).}
\item{C}{If the censoring times are known for all observations, they can be

View file

@ -7,7 +7,7 @@
CR_ResponseCombiner(events)
}
\arguments{
\item{events}{A vector of integers specifying which competing risk events's
\item{events}{A vector of integers specifying which competing risks event
functions should be processed. This should correspond to all of the
competing risk events that can occur, from 1 to the largest number.}
}

View file

@ -13,7 +13,10 @@ Numeric(y)
An R list containing rJava Doubles.
}
\description{
An internal function that converts an R vector of numerics or integers into an R list containing java.lang.Double objects. This method does not need to be used directly by the user, as \code{\link{train}} will automatically handle numeric responses if you're working in the regression settings.
An internal function that converts an R vector of numerics or integers into
an R list containing java.lang.Double objects. This method does not need to
be used directly by the user, as \code{\link{train}} will automatically
handle numeric responses if you're working in the regression settings.
}
\examples{
x <- Numeric(1:5)

View file

@ -14,8 +14,8 @@ addTrees(forest, numTreesToAdd, savePath = NULL,
\item{numTreesToAdd}{The number of trees to add.}
\item{savePath}{If saving the forest, the directory to save to. Default is
\code{NULL}. Note that you need to respecify the path if you're modifying a
previously saved forest.}
\code{NULL}. Note that you need to re-specify the path if you're modifying
a previously saved forest.}
\item{savePath.overwrite}{If \code{savePath} is pointing to an existing
directory, possibly containing another forest, this specifies what should