smrmul: Multivariate analysis and summary table

Description Usage Arguments Value References Examples

Description

Generate summary table proving the multivariate analysis for all variabls and dependent variable from the whole dataset

Usage

1
smrmul(x, alternative = c("logistic", "linear"), digit = 3, ...)

Arguments

x

a regression model which generated by users

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 multivariate analysis, it returns a summary table only for significant variavbles 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.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
a<-rnorm(5,3)
b<-rnorm(5,7)
c<-cbind(a,b)
c<-data.frame(c)

fit1 <- lm(a~., data = c)

smrmul(fit1,alternative = "linear")

smrmul(fit1)

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