hdi (version 0.1-7)

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

Description

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

Usage

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.

Value

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

Details

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

See Also

hdi

Examples

Run this code
# NOT RUN {
## ...
# }

Run the code above in your browser using DataCamp Workspace