Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sirplus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioCellGen-public
sirplus
Commits
27150f9c
Commit
27150f9c
authored
5 years ago
by
Christina Azodi
Browse files
Options
Downloads
Patches
Plain Diff
exported new functions by cba
parent
8c43df6e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NAMESPACE
+2
-0
2 additions, 0 deletions
NAMESPACE
R/results-parse.R
+1
-0
1 addition, 0 deletions
R/results-parse.R
R/time_experiments.R
+1
-3
1 addition, 3 deletions
R/time_experiments.R
man/vary_param.Rd
+23
-0
23 additions, 0 deletions
man/vary_param.Rd
with
27 additions
and
3 deletions
NAMESPACE
+
2
−
0
View file @
27150f9c
...
...
@@ -11,10 +11,12 @@ export(icm.seiqhrf)
export(infection.FUN)
export(init_status.icm)
export(initialize.FUN)
export(plot_models)
export(plot_times)
export(recovery.FUN)
export(saveout.seiqhrf.icm)
export(simulate_seiqhrf)
export(vary_param)
import(dplyr)
import(ggplot2)
importFrom(EpiModel,get_prev.icm)
...
...
This diff is collapsed.
Click to expand it.
R/results-parse.R
+
1
−
0
View file @
27150f9c
...
...
@@ -93,6 +93,7 @@ plot_times <- function(times){
#' @import dplyr
#' @importFrom tidyr pivot_longer
#'
#' @export
plot_models
<-
function
(
sims
=
baseline_sim
,
sim_id
=
"baseline"
,
comp_remove
=
"none"
,
...
...
This diff is collapsed.
Click to expand it.
R/time_experiments.R
+
1
−
3
View file @
27150f9c
...
...
@@ -10,6 +10,7 @@
#'
#' @return list of parameter values for length t
#'
#' @export
vary_param
<-
function
(
nstep
=
nstep
,
vals
=
vals
,
timing
=
timing
)
{
stopifnot
(
length
(
vals
)
==
length
(
timing
))
...
...
@@ -37,6 +38,3 @@ vary_param <- function(nstep = nstep, vals = vals, timing = timing) {
return
(
unlist
(
y
))
}
This diff is collapsed.
Click to expand it.
man/vary_param.Rd
0 → 100644
+
23
−
0
View file @
27150f9c
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/time_experiments.R
\name{vary_param}
\alias{vary_param}
\title{Generating time-dependent parameters}
\usage{
vary_param(nstep = nstep, vals = vals, timing = timing)
}
\arguments{
\item{nstep}{Number of time steps to generate parameter values for.}
\item{vals}{List of parameter values to include over the nsteps.}
\item{timing}{List of the step numbers at which to start changes, with the
last number reflecting when to hit the last parameter value in vals.}
}
\value{
list of parameter values for length t
}
\description{
Function to generate parameter values for the time range of the simulation
that can change over time.
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment