findPi: Predictions on Each Observation

Description Usage Arguments Details Value Author(s)

Description

Computes the value of predictions on each observation (P(i)), given bind.x(input) and estimated betas.

Usage

1
findPi(bind.x, beta, family)

Arguments

bind.x

is a data matrix of independent variables.

beta

is a list of regression coefficients (estimated betas).

family

a string character with the name of the link function to be used in the analysis. If family is set to 'binomial', a logit function is applied. If family is set to 'poisson', a log function applied.

Details

Internal function. Computes the predictions on each observation by a logit function (used for logistic regression) or log function (used for poisson regression).

Value

a vector of predictions on each observation.

Author(s)

Paula R. Costa e Silva


paularaissa/distStatsServer documentation built on June 19, 2019, 12:43 a.m.