View source: R/all_functions.R
W_to_R2 | R Documentation |
This function computes the value of R2 for a given W, beta0 and link function
W_to_R2(
W,
b0 = 0,
link = c("Gaussian", "Logistic", "Poisson", "Poisson_offsets", "ZIP", "NegBinom",
"Arbitrary"),
theta = 1,
mu,
sigma2,
disp = FALSE
)
W |
value of W |
b0 |
value of beta0 |
link |
link function used to compute R2. Default options are "Gaussian", "Logistic", "Poisson", "Poisson_offsets", "ZIP" and "NegBinom". Also can have user-inputted link function using "Arbitrary". |
theta |
dispersion parameter (if necessary) |
mu |
if link="Arbitrary", then this is the mean function of the linear predictor. May depend on theta |
sigma2 |
if link="Arbitrary", then this is the variance function of the linear predictor. May depend on theta |
disp |
logical. TRUE if arbitrary link function depends on a dispersion parameter |
value of R2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.