Skip to content

Commit 4516962

Browse files
committed
export tweedie
1 parent cbc19d3 commit 4516962

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export(tib_layer)
129129
export(tibgroup_layer)
130130
export(tibgroup_layer_torch)
131131
export(tiblinlasso_layer_torch)
132+
export(tweedie)
132133
export(weight_control)
133134
import(Matrix)
134135
import(R6)
@@ -140,6 +141,7 @@ import(reticulate)
140141
import(tensorflow)
141142
import(tfprobability)
142143
import(torch, except = as_iterator)
144+
143145
importFrom(graphics,abline)
144146
importFrom(graphics,filled.contour)
145147
importFrom(graphics,matplot)

R/families.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,12 @@ tfd_tweedie <- function(loc, phi, p = 1.5, quasi = FALSE,
567567

568568
}
569569

570-
# tfd_distfun for (Quasi-)Tweedie to allow for flexible p
570+
#' tfd_distfun for (Quasi-)Tweedie to allow for flexible p
571+
#' @param p integer; defines distribution
572+
#' @param quasi logical; whether to use quasi-likelihood or deviance resids
573+
#' @param output_dim integer; currently only univariate responses supported
574+
#' @export
575+
#'
571576
tweedie <- function(p, quasi = FALSE, output_dim = 1L)
572577
{
573578

man/processors.Rd

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/tweedie.Rd

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)