na.keep.Rd
Does not delete rows containing NAs, but does add details concerning
the distribution of the response variable if options(na.detail.response=TRUE)
.
This na.action
is primarily for use with describe.formula
.
na.keep(mf)
the same model frame with the "na.action"
attribute
options(na.action="na.keep", na.detail.response=TRUE)
x1 <- runif(20)
x2 <- runif(20)
x2[1:4] <- NA
y <- rnorm(20)
describe(y ~ x1*x2)
#> y ~ x1 * x2
#>
#> 3 Variables 20 Observations
#> --------------------------------------------------------------------------------
#> y
#> n missing distinct Info Mean pMedian Gmd .05
#> 20 0 20 1 0.1329 0.1579 1.096 -1.2327
#> .10 .25 .50 .75 .90 .95
#> -0.8967 -0.4443 0.1641 0.9695 1.1628 1.5280
#>
#> -2.10059223951497 (1, 0.05), -1.18703580178743 (1, 0.05), -0.864407367043455
#> (1, 0.05), -0.760489288648317 (1, 0.05), -0.468572136837144 (1, 0.05),
#> -0.436144476347289 (1, 0.05), -0.209102198192578 (1, 0.05), -0.126904017137299
#> (1, 0.05), -0.109327479845157 (1, 0.05), 0.0974798286223241 (1, 0.05),
#> 0.230709584804438 (1, 0.05), 0.249672556336925 (1, 0.05), 0.412734848565361 (1,
#> 0.05), 0.683699593091062 (1, 0.05), 0.950558083086071 (1, 0.05),
#> 1.02634946545358 (1, 0.05), 1.0633707135635 (1, 0.05), 1.12238112989498 (1,
#> 0.05), 1.52647836973651 (1, 0.05), 1.55646894757483 (1, 0.05)
#>
#> For the frequency table, variable is rounded to the nearest 0
#> --------------------------------------------------------------------------------
#> x1
#> n missing distinct Info Mean pMedian Gmd .05
#> 20 0 20 1 0.5905 0.5894 0.3084 0.2163
#> .10 .25 .50 .75 .90 .95
#> 0.2293 0.3659 0.6302 0.8090 0.9199 0.9713
#>
#> Value 0.205 0.217 0.231 0.296 0.332 0.377 0.384 0.470 0.556 0.582 0.679
#> Frequency 1 1 1 1 1 1 1 1 1 1 1
#> Proportion 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05
#>
#> Value 0.684 0.710 0.733 0.801 0.833 0.842 0.914 0.970 0.994
#> Frequency 1 1 1 1 1 1 1 1 1
#> Proportion 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05 0.05
#>
#> For the frequency table, variable is rounded to the nearest 0
#> --------------------------------------------------------------------------------
#> x2
#> n missing distinct Info Mean pMedian Gmd .05
#> 16 4 16 1 0.4894 0.4891 0.332 0.1171
#> .10 .25 .50 .75 .90 .95
#> 0.1582 0.2804 0.5111 0.7308 0.8093 0.8720
#>
#> Value 0.0154 0.1509 0.1655 0.1795 0.3140 0.3182 0.4256 0.4896 0.5325
#> Frequency 1 1 1 1 1 1 1 1 1
#> Proportion 0.062 0.062 0.062 0.062 0.062 0.062 0.062 0.062 0.062
#>
#> Value 0.5619 0.6299 0.7283 0.7385 0.7765 0.8421 0.9617
#> Frequency 1 1 1 1 1 1 1
#> Proportion 0.062 0.062 0.062 0.062 0.062 0.062 0.062
#>
#> For the frequency table, variable is rounded to the nearest 0
#> --------------------------------------------------------------------------------