num2stat {autoReg} | R Documentation |
Summarize numeric vector to statistical summary
Description
Summarize numeric vector to statistical summary
Usage
num2stat(x, digits = 1, method = 1, p = NULL)
Arguments
x |
A numeric vector |
digits |
integer indicating the number of decimal places |
method |
An integer indicating methods for continuous variables. Possible values in methods are 1 forces analysis as normal-distributed 2 forces analysis as continuous non-normal 3 performs a Shapiro-Wilk test or nortest::ad.test to decide between normal or non-normal Default value is 1. |
p |
A numeric |
Value
A character vector of length 1
Examples
library(moonBook)
num2stat(acs$age)
num2stat(acs$age,method=2)
[Package autoReg version 0.3.3 Index]