Nothing
#############################################################################
#
# survloadmodel
#
#############################################################################
#' @import rjags
#'
survLoadModel <- function(model.program,
data,
n.chains,
Nadapt,
quiet = quiet) {
# create the JAGS model object
# INPUTS:
# - model.program: character string containing a jags model description
# - data: list of data created by survCreateJagsData
# - nchains: Number of chains desired
# - Nadapt: length of the adaptation phase
# - quiet: silent option
# OUTPUT:
# - JAGS model
# load model text in a temporary file
model.file <- tempfile() # temporary file address
fileC <- file(model.file) # open connection
writeLines(model.program, fileC) # write text in temporary file
close(fileC) # close connection to temporary file
# creation of the jags model
model <- jags.model(file = model.file, data = data, n.chains = n.chains,
n.adapt = Nadapt, quiet = quiet)
unlink(model.file)
return(model)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.