Skip to content
Snippets Groups Projects
Commit 29f9599f authored by pqiao29's avatar pqiao29
Browse files

clear function names: icm.seiqhrf -> seiqhrf

parent 4259cd14
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ export(cum_discr_si) ...@@ -7,7 +7,6 @@ export(cum_discr_si)
export(departures.FUN) export(departures.FUN)
export(get_prev.FUN) export(get_prev.FUN)
export(get_times) export(get_times)
export(icm.seiqhrf)
export(infection.FUN) export(infection.FUN)
export(init_status.icm) export(init_status.icm)
export(initialize.FUN) export(initialize.FUN)
...@@ -15,6 +14,7 @@ export(plot_models) ...@@ -15,6 +14,7 @@ export(plot_models)
export(plot_times) export(plot_times)
export(recovery.FUN) export(recovery.FUN)
export(saveout.seiqhrf.icm) export(saveout.seiqhrf.icm)
export(seiqhrf)
export(simulate_seiqhrf) export(simulate_seiqhrf)
export(summary_seiqhrf) export(summary_seiqhrf)
export(vary_param) export(vary_param)
......
File moved
...@@ -69,7 +69,7 @@ merge.seiqhrf.icm <- function(x, y, ...) { ...@@ -69,7 +69,7 @@ merge.seiqhrf.icm <- function(x, y, ...) {
#' @importFrom EpiModel verbose.icm #' @importFrom EpiModel verbose.icm
#' @importFrom future availableCores #' @importFrom future availableCores
#' @export #' @export
icm.seiqhrf <- function(param, init, control, seed = NULL) { seiqhrf <- function(param, init, control, seed = NULL) {
crosscheck.seiqhrf.icm(param, init, control) crosscheck.seiqhrf.icm(param, init, control)
......
...@@ -345,7 +345,7 @@ simulate_seiqhrf <- function(type = "SEIQHRF", ...@@ -345,7 +345,7 @@ simulate_seiqhrf <- function(type = "SEIQHRF",
dh.rate = dh.rate, dh.rate = dh.rate,
dr.rate = dr.rate) dr.rate = dr.rate)
sim <- icm.seiqhrf(param, init, control) sim <- seiqhrf(param, init, control)
sim_df <- as.data.frame(sim, out=out) sim_df <- as.data.frame(sim, out=out)
return(list(sim=sim, df=sim_df)) return(list(sim=sim, df=sim_df))
......
% Generated by roxygen2: do not edit by hand % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/crosscheck.seiqhrf.R % Please edit documentation in R/crosscheck.R
\name{crosscheck.seiqhrf.icm} \name{crosscheck.seiqhrf.icm}
\alias{crosscheck.seiqhrf.icm} \alias{crosscheck.seiqhrf.icm}
\title{Cross Checking of Inputs for Stochastic Individual Contact Models} \title{Cross Checking of Inputs for Stochastic Individual Contact Models}
......
% Generated by roxygen2: do not edit by hand % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/icm_seiqhrf.R % Please edit documentation in R/icm_seiqhrf.R
\name{icm.seiqhrf} \name{seiqhrf}
\alias{icm.seiqhrf} \alias{seiqhrf}
\title{SEIQHRF function} \title{SEIQHRF function}
\usage{ \usage{
icm.seiqhrf(param, init, control, seed = NULL) seiqhrf(param, init, control, seed = NULL)
} }
\arguments{ \arguments{
\item{param}{ICM parameters.} \item{param}{ICM parameters.}
......
...@@ -19,8 +19,8 @@ test_that("Identical output as Churches' original function: icm_seiqhrf", { ...@@ -19,8 +19,8 @@ test_that("Identical output as Churches' original function: icm_seiqhrf", {
comp <- rep(NA, No_seeds) comp <- rep(NA, No_seeds)
i <- 1 i <- 1
for(seed in seed_list){ for(seed in seed_list){
sim1 <- icm.seiqhrf(param, init, control1, seed) sim1 <- seiqhrf(param, init, control1, seed)
sim2 <- icm.seiqhrf(param, init, control2, seed) sim2 <- seiqhrf(param, init, control2, seed)
comp[i] <- identical(sim1, sim2) comp[i] <- identical(sim1, sim2)
i <- i + 1 i <- i + 1
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment