Skip to content

Commit

Permalink
correction in example for ZIPLNfit_sparse
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiquet committed Feb 8, 2024
1 parent 3efa55a commit 7b9b05b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions R/ZIPLNfit-S3methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ isZIPLNfit_sparse <- function(Robject) {inherits(Robject, "ZIPLNfit_sparse")}
#' @examples
#' data(trichoptera)
#' trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
#' fits <- ZIPLN(Abundance ~ 1, data = trichoptera, control = ZIPLN_param(penalty = 0.1))
#' myNet <- getBestModel(fits)
#' fit <- ZIPLN(Abundance ~ 1, data = trichoptera, control = ZIPLN_param(penalty = 0.1))
#' \dontrun{
#' plot(myNet)
#' plot(fit)
#' }
#' @export
plot.ZIPLNfit_sparse <-
Expand Down
3 changes: 2 additions & 1 deletion R/ZIPLNfit-class.R
Original file line number Diff line number Diff line change
Expand Up @@ -730,9 +730,10 @@ ZIPLNfit_fixed <- R6Class(
#' # See other examples in function ZIPLN
#' data(trichoptera)
#' trichoptera <- prepare_data(trichoptera$Abundance, trichoptera$Covariate)
#' myPLN <- ZIPLN(Abundance ~ 1, data = trichoptera, control= ZIPLN_param(penalty = 0.2))
#' myPLN <- ZIPLN(Abundance ~ 1, data = trichoptera, control= ZIPLN_param(penalty = 1))
#' class(myPLN)
#' print(myPLN)
#' plot(myPLN)
#' }
ZIPLNfit_sparse <- R6Class(
classname = "ZIPLNfit_sparse",
Expand Down

0 comments on commit 7b9b05b

Please sign in to comment.