Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinKipruto committed Nov 9, 2023
1 parent a43daa9 commit fdf218b
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion R/acd.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#'
#' @param x a numeric vector.
#' @param powers a vector of allowed FP powers. The default value is `NULL`,
#' meaning that the set S = {(-2, -1, -0.5, 0, 0.5, 1, 2, 3)} is used.
#' meaning that the set \eqn{S = (-2, -1, -0.5, 0, 0.5, 1, 2, 3)} is used.
#' @param shift a numeric that is used to shift the values of `x` to positive
#' values. The default value is 0, meaning no shifting is conducted.
#' If `NULL`, then the program will estimate an appropriate shift automatically
Expand Down
2 changes: 1 addition & 1 deletion R/generation_powers.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' triples of powers, and so on. If the ACD transformation is used,
#' this degree is assumed to be 2.
#' @param powers the set of allowed powers for the fractional polynomials.
#' Default is `NULL` and the set {-2, -1, -0.5, 0, 0.5, 1, 2, 3} is used.
#' Default is `NULL` and the set \eqn{(-2, -1, -0.5, 0, 0.5, 1, 2, 3)} is used.
#'
#' @details
#' For FP powers, this function returns all combinations of the powers of
Expand Down
20 changes: 10 additions & 10 deletions R/mfp2.R
Original file line number Diff line number Diff line change
Expand Up @@ -378,22 +378,22 @@
#' An object of class `mfp2` is a list containing all entries as for `glm`
#' or `coxph`, and in addition the following entries:
#' \itemize{
#' \item{convergence_mfp: }{logical value indicating convergence of mfp algorithm.}
#' \item{fp_terms: }{a data.frame with information on fractional polynomial
#' \item{"convergence_mfp:" }{logical value indicating convergence of mfp algorithm.}
#' \item{"fp_terms: "}{a data.frame with information on fractional polynomial
#' terms.}
#' \item{transformations: }{a data.frame with information on shifting, scaling
#' \item{"transformations: "}{a data.frame with information on shifting, scaling
#' and centering for all variables.}
#' \item{fp_powers: }{a list with all powers of fractional polynomial terms.
#' \item{"fp_powers: "}{a list with all powers of fractional polynomial terms.
#' Each entry of the list is named according to the transformation of the
#' variable.}
#' \item{acd: }{a vector with information for which variables the acd
#' \item{"acd: "}{a vector with information for which variables the acd
#' transformation was applied.}
#' \item{x_original: }{the scaled and shifted input matrix but without
#' \item{"x_original: "}{the scaled and shifted input matrix but without
#' transformations.}
#' \item{y: }{the original outcome variable.}
#' \item{x: }{the final transformed input matrix used to fit the final model.}
#' \item{call_mfp: }{the call to the `mfp2()` function.}
#' \item{family_string: }{the family stored as character string.}
#' \item{"y: "}{the original outcome variable.}
#' \item{"x: "}{the final transformed input matrix used to fit the final model.}
#' \item{"call_mfp: "}{the call to the `mfp2()` function.}
#' \item{"family_string: "}{the family stored as character string.}
#' }
#' The `mfp2` object may contain further information depending on family.
#'
Expand Down
2 changes: 1 addition & 1 deletion man/find_best_fp1_for_acd.Rd

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

2 changes: 1 addition & 1 deletion man/fit_acd.Rd

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

2 changes: 1 addition & 1 deletion man/generate_powers_fp.Rd

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

20 changes: 10 additions & 10 deletions man/mfp2.Rd

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

0 comments on commit fdf218b

Please sign in to comment.