Skip to content

Commit

Permalink
Merge pull request #4 from CausalInference/dev
Browse files Browse the repository at this point in the history
update README
  • Loading branch information
carriecheng0924 authored Nov 25, 2024
2 parents 8004b22 + 6f3359a commit f5cba6d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Imports:
parallel,
foreach,
stringr,
tidyverse,
magrittr,
dplyr,
rlang,
reshape2,
Expand Down
4 changes: 2 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ import(doParallel)
import(dplyr)
import(foreach)
import(ggplot2)
import(magrittr)
import(methods)
import(nnet)
import(parallel)
import(reshape2)
import(rlang)
import(speedglm)
import(stringr)
import(tidyverse)
importFrom(Hmisc,rcspline.eval)
importFrom(data.table,SJ)
importFrom(data.table,as.data.table)
importFrom(data.table,data.table)
importFrom(data.table,setkey)
importFrom(rlang,is_formula)
importFrom(splines,ns)
importFrom(stats,as.formula)
importFrom(stats,binomial)
Expand Down
3 changes: 2 additions & 1 deletion R/ICE.R
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,10 @@
#' plot(ice_fit5b)
#'
#'
#' @import tidyverse rlang methods dplyr stringr
#' @import magrittr methods dplyr stringr
#' @importFrom Hmisc rcspline.eval
#' @importFrom splines ns
#' @importFrom rlang is_formula
#' @export

ice <- function(data, time_points, id, time_name,
Expand Down
2 changes: 1 addition & 1 deletion R/ICE_pool.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#' \item{outcome_by_step}{A list containing the fitted models with the summary, standard errors of the coefficients, variance-covariance matrices of the parameters, and the root mean square error (RMSE) values for the outcome model of each subsequent iteration in the ICE algorithm.}
#' \item{comp_by_step}{A list containing the fitted models with the summary, standard errors of the coefficients, variance-covariance matrices of the parameters, and the root mean square error (RMSE) values for the competing model of each subsequent iteration in the ICE algorithm (if applicable). Could be \code{NULL} if \code{competing_name} is \code{NULL}.}
#' \item{hazard_by_step}{A list containing the fitted models with the summary, standard errors of the coefficients, variance-covariance matrices of the parameters, and the root mean square error (RMSE) values for the hazard model of each iteration in the ICE algorithm (if applicable). Could be \code{NULL} if \code{hazard_based} is FALSE.}
#' @import reshape2 tidyverse speedglm dplyr stringr
#' @import reshape2 magrittr speedglm dplyr stringr
#' @importFrom stats reshape
#' @importFrom stats quasibinomial
#' @importFrom stats plogis
Expand Down
2 changes: 1 addition & 1 deletion R/ICE_stratify.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#' \item{outcome_by_step}{A list containing the fitted models with the summary, standard errors of the coefficients, variance-covariance matrices of the parameters, and the root mean square error (RMSE) values for the outcome model of each subsequent iteration in the ICE algorithm.}
#' \item{comp_by_step}{A list containing the fitted models with the summary, standard errors of the coefficients, variance-covariance matrices of the parameters, and the root mean square error (RMSE) values for the competing model of each subsequent iteration in the ICE algorithm (if applicable). Could be \code{NULL} if \code{competing_name} is \code{NULL}.}
#' \item{hazard_by_step}{A list containing the fitted models with the summary, standard errors of the coefficients, variance-covariance matrices of the parameters, and the root mean square error (RMSE) values for the hazard model of each iteration in the ICE algorithm (if applicable). Could be \code{NULL} if \code{hazard_based} is FALSE.}
#' @import tidyverse reshape2 nnet speedglm dplyr stringr
#' @import magrittr reshape2 nnet speedglm dplyr stringr
#' @importFrom stats reshape
#' @importFrom stats quasibinomial
#' @importFrom stats fitted
Expand Down
2 changes: 1 addition & 1 deletion R/bootstrap_ice.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#' \item{ref_model_err_mssg}{A list of strings for error messages of any model error from each bootstrap replicate for the reference intervention.}
#' \item{ref_data_err_mssg}{A list of strings for error messages of any data error from each bootstrap replicate for the reference intervention.}
#'
#' @import doParallel parallel foreach tidyverse dplyr stringr
#' @import doParallel parallel foreach magrittr dplyr stringr
#' @importFrom data.table SJ
#' @importFrom data.table as.data.table
#' @importFrom data.table setkey
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
![Downloads](https://cranlogs.r-pkg.org/badges/grand-total/gfoRmulaICE)
<!-- badges: end -->

(to verify each of the example works)

## How to install

Installation from CRAN:
Expand Down

0 comments on commit f5cba6d

Please sign in to comment.