gazeCont | R Documentation |
Summary function for continuous variable
gazeCont(
data,
x,
y = NULL,
max.ylev = 5,
digits = 1,
show.total = FALSE,
show.n = FALSE,
show.missing = FALSE,
show.stats = TRUE,
show.p = TRUE,
method = 1,
origData,
...
)
data |
A data.frame |
x |
A name of variable |
y |
A name of variable, either continuous or categorical |
max.ylev |
max.ylev An integer indicating the maximum number of levels of grouping variable ('y'). If a column have unique values less than max.ylev it is treated as a categorical variable. Default value is 5. |
digits |
integer indicating the number of decimal places |
show.total |
logical. Whether or not show total column |
show.n |
logical. Whether or not show N column |
show.missing |
logical. Whether or not show missing column |
show.stats |
logical. Whether or not show stats column |
show.p |
logical. Whether or not show p column |
method |
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. |
origData |
A data.frame containing original data |
... |
Further arguments |
An object of class "data.frame" or "tibble"
gazeCont(mtcars,"hp")
gazeCont(mtcars,"hp","mpg")
require(moonBook)
gazeCont(acs,"log(age)")
gazeCont(acs,"age",method=2)
gazeCont(acs,"age","EF",method=2)
gazeCont(acs,"age","Dx",method=1)
gazeCont(acs,"age","Dx",show.p=TRUE,method=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.