-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pp_check functionality for stanjm objects
- Loading branch information
1 parent
49ab027
commit b9fe9e0
Showing
14 changed files
with
165 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Part of the rstanarm package for estimating model parameters | ||
# Copyright (C) 2015, 2016 Trustees of Columbia University | ||
# Copyright (C) 2016 Sam Brilleman | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 3 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
#' Example joint longitudinal and time-to-event model | ||
#' | ||
#' A model for use in the \pkg{rstanarm} examples related to \code{\link{stan_jm}}. | ||
#' | ||
#' @name example_jm | ||
#' @format Calling \code{example("example_jm")} will run the model in the | ||
#' Examples section, below, and the resulting stanjm object will then be | ||
#' available in the global environment. The \code{chains} and \code{iter} | ||
#' arguments are specified to make this example be small in size. In practice, | ||
#' we recommend that they be left unspecified in order to use the default | ||
#' values or increased if there are convergence problems. The \code{cores} | ||
#' argument is optional and on a multicore system, the user may well want | ||
#' to set that equal to the number of chains being executed. | ||
#' | ||
#' @examples | ||
#' set.seed(123) | ||
#' example_jm <- | ||
#' stan_jm(formulaLong = logBili ~ year + (1 | id), | ||
#' dataLong = pbcLong, | ||
#' formulaEvent = Surv(futimeYears, death) ~ sex + trt, | ||
#' dataEvent = pbcSurv, | ||
#' time_var = "year", | ||
#' # this next line is only to keep the example small in size! | ||
#' chains = 1, cores = 1, seed = 12345, iter = 1000) | ||
#' | ||
#' | ||
NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.