smruni: Univariate analysis and summary table

Description Usage Arguments Value References

Description

Generate summary table proving the univariate analysis for each independent variabls and dependent variable from the whole dataset

Usage

1
smruni(y, data, alternative = c("linear", "logistic"), digit = 3, ...)

Arguments

y

dependent variable which selected by user

data

a data frame, list the variables to be summarized (contain the variable Y)

alternative

a character string specifying the alternative approaches, must be one of "linear" (default), "logistic"

...

further arguments to be passed to or from methods

digits

the digits of the data values (default is 3)

Value

For univariate analysis, it returns a summary table based on the type of dependent variables. For continuous Y, the table contains parameters, coefficient, p-value, CI for coefficient; while for categorical variable, the table contains the parameters, Odds ratio, p-value, CI for odds ratio.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.


YuweiNi45/lng documentation built on May 12, 2019, 6:26 p.m.