Skip to content

Commit

Permalink
documentation fixes for cran push
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-wrobel committed Apr 16, 2022
1 parent a016d52 commit eb6af5c
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 26 deletions.
30 changes: 14 additions & 16 deletions R/CD4-data.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
##' Observed CD4 cell counts
##'
##' CD4 cell counts for 366 subjects between months -18 and 42 since
##' seroconversion. Each subject's observations are contained in a single row.
##'
##'
##' @name cd4
##' @docType data
##' @format A data frame made up of \describe{ \item{list("cd4")}{A 366 x 61
##' matrix of CD4 cell counts.}\item{ }{A 366 x 61 matrix of CD4 cell counts.}
##' }
##' @references Goldsmith, J., Greven, S., and Crainiceanu, C. (2013).
##' Corrected confidence bands for functional data using principal components.
##' \emph{Biometrics}, 69(1), 41--51.
##' @keywords datasets
NULL
##' Observed CD4 cell counts
##'
##' CD4 cell counts for 366 subjects between months -18 and 42 since
##' seroconversion. Each subject's observations are contained in a single row.
##'
##' @name cd4
##' @docType data
##' @format A data frame made up of a 366 x 61 matrix of CD4 cell counts
##'
##' @references Goldsmith, J., Greven, S., and Crainiceanu, C. (2013).
##' Corrected confidence bands for functional data using principal components.
##' \emph{Biometrics}, 69(1), 41--51.
##' @keywords datasets
NULL
2 changes: 1 addition & 1 deletion R/pffr-ff.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#' @references For background on \code{check.ident}:\cr Scheipl, F., Greven,
#' S. (2016). Identifiability in penalized function-on-function regression
#' models. Electronic Journal of Statistics, 10(1), 495--526.
#' \url{https://projecteuclid.org/journals/electronic-journal-of-statistics/volume-10/issue-1/Identifiability-in-penalized-function-on-function-regression-models/10.1214/16-EJS1123.full}
#' \url{https://projecteuclid.org/journals/electronic-journal-of-statistics/volume-10/issue-1/Identifiability-in-penalized-function-on-function-regression-models/10.1214}
#' @export
#' @importFrom MASS Null
# FIXME: weights for Simpson's rule on non-equidistant grids
Expand Down
2 changes: 1 addition & 1 deletion R/pffr.R
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
#'
#' F. Scheipl, J. Gertheiss, S. Greven (2016): Generalized Functional Additive Mixed Models,
#' Electronic Journal of Statistics, 10(1), 1455--1492.
#' \url{https://projecteuclid.org/journals/electronic-journal-of-statistics/volume-10/issue-1/Generalized-functional-additive-mixed-models/10.1214/16-EJS1145.full}
#' \url{https://projecteuclid.org/journals/electronic-journal-of-statistics/volume-10/issue-1/Generalized-functional-additive-mixed-models/10.1214}
#' @export
#' @importFrom mgcv ti jagam gam gam.fit bam gamm
#' @importFrom gamm4 gamm4
Expand Down
2 changes: 1 addition & 1 deletion R/plot.lpeer.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
##' }
### Function to plot estimated regression function
plot.lpeer<- function(x, conf=0.95, ...){
if(!class(x)=='lpeer') return (cat("Error: The object is not an lpeer object.\n"))
if(!inherits(x, "lpeer")) return (cat("Error: The object is not an lpeer object.\n"))
if(conf>0.99 | conf<0.70) return (cat("Error: Confidence level should be within 0.70 and 0.99\n"))
d<- x$d
status<- x$status
Expand Down
2 changes: 1 addition & 1 deletion R/plot.peer.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

### Function to plot estimated regression function
plot.peer<- function(x, conf=0.95, ylab='Estimated regression function', main=expression(gamma),...){
if(!class(x)=='peer') return (cat("Error: The object is not an peer object.\n"))
if(!inherits(x, "peer")) return (cat("Error: The object is not an peer object.\n"))
if(conf>0.99 | conf<0.70) return (cat("Error: Confidence level should be within 0.70 and 0.99\n"))
status<- x$status
est<- x$GammaHat
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# `refund`
[![](https://travis-ci.org/refunders/refund.svg?branch=master)](https://travis-ci.org/refunders/refund)

[![](http://cranlogs.r-pkg.org/badges/refund)](http://cran.rstudio.com/web/packages/refund/index.html)
[![](http://cranlogs.r-pkg.org/badges/refund)](https://cran.rstudio.com/web/packages/refund/index.html)

## Methods for regression with functional data

Expand Down
4 changes: 1 addition & 3 deletions man/cd4.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/ff.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/pffr.Rd

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

0 comments on commit eb6af5c

Please sign in to comment.