Skip to content

Commit

Permalink
Update profile example
Browse files Browse the repository at this point in the history
  • Loading branch information
quang-huynh committed Jul 6, 2021
1 parent 4d7447e commit 7d1c63f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions R/define_S4_class_profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ setGeneric("profile", function(fitted, ...) standardGeneric("profile"))
#' a figure of the likelihood surface.
#' @examples
#' \donttest{
#' output <- DD_TMB(x = 3, Data = MSEtool::SimulatedData)
#' output <- SCA(Data = MSEtool::SimulatedData)
#'
#' # Profile R0 only
#' pro <- profile(output, R0 = 60:100)
#' pro <- profile(output, R0 = seq(1000, 2000, 50))
#'
#' # Profile both R0 and steepness
#' pro <- profile(output, R0 = 65:85, h = seq(0.65, 0.85, 0.01))
#' pro <- profile(output, R0 = seq(1000, 2000, 100), h = seq(0.8, 0.95, 0.025))
#'
#' # Ensure your grid is of proper resolution. A grid that is too coarse
#' # will likely distort the shape of the likelihood surface.
Expand Down
6 changes: 3 additions & 3 deletions man/profile.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7d1c63f

Please sign in to comment.