mylogit: mylogit

Description Usage Arguments Value Examples

View source: R/mylogit.R

Description

mylogit is used to fit a logistic regression model.

Usage

1
mylogit(formula, data, format = "brief")

Arguments

formula

a symbolic description of the model to be fitted.

data

a data frame containing the variables in the model.

format

output format. brief, as default for brief output, detailed for detailed output, nothing for no printing output.

Value

a list containing the following components:

coefficients

coefficients of logistic regression model

z.value

the z score of coefficients

p.value

the p value of coefficients

cov

covariance matrix

std.err

standard error

deviance

deviance

null.deviance

null deviance

r2

r-square, 1 - (deviance/null.deviance)

AIC

AIC score

null.df

degrees of freedom of null model

df

degrees of freedom of logistic model

level

the levels of response variable

fitted.values

fitted values for input dataset

predict.class

class prediction for input dataset

predict.accuracy

accuracy of class prediction

formula

formula of logistic model

data

input dataset

Examples

1
mylogit(formula = supp ~ len + dose, data = ToothGrowth, format="brief")

zwang0/mylogit documentation built on Dec. 23, 2021, 10:13 p.m.