Nothing
#' @name ssn_simulate
#' @export
ssn_rpois <- function(ssn.object, network = "obs",
tailup_params, taildown_params, euclid_params, nugget_params,
mean = 0, samples = 1, additive,
randcov_params, partition_factor, ...) {
if (any(!(network %in% "obs"))) {
stop("network must be \"obs\".", call. = FALSE)
}
call_val <- match.call()
call_val[[1]] <- as.symbol("ssn_rnorm")
ssn_rnorm_val <- eval(call_val, envir = parent.frame())
mu <- exp(ssn_rnorm_val)
n <- NROW(ssn.object$obs)
if (is.matrix(mu)) {
mu_list <- split(t(mu), seq_len(NCOL(mu)))
ssn_rpois_val <- vapply(mu_list, function(x) rpois(n, x), numeric(n))
} else {
ssn_rpois_val <- rpois(n, mu)
}
ssn_rpois_val
}
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.