glm.pval: Function to calculate p-values for a generalized linear...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/helpers.R

Description

Calculates (classical) p-values for an ordinary generalized linear model in the n > p situation.

Usage

1
glm.pval(x, y, family = "binomial", verbose = FALSE, ...)

Arguments

x

Design matrix (without intercept).

y

Response vector.

family

As in glm.

verbose

Logical. Should information be printed out if algorithm did not converge?

...

Additional arguments to be passed to glm.

Details

A model with intercept is fitted but the p-value of the intercept is not reported in the output.

Value

Vector of p-values (not including the intercept).

Author(s)

Lukas Meier

See Also

hdi

Examples

1
## ...

Example output

Loading required package: scalreg
Loading required package: lars
Loaded lars 1.2

Loading required package: MASS

hdi documentation built on May 27, 2021, 3 p.m.