File: medianSamp.Rd

package info (click to toggle)
r-cran-vim 6.2.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,556 kB
  • sloc: cpp: 141; sh: 12; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 722 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/medianSamp.R
\name{medianSamp}
\alias{medianSamp}
\title{Aggregation function for a ordinal variable}
\usage{
medianSamp(x, weights = NULL)
}
\arguments{
\item{x}{ordered factor vector}

\item{weights}{numeric vector providing weights for the observations in x}
}
\description{
The function medianSamp chooses the level as the median or randomly between
two levels.
}
\seealso{
Other imputation methods: 
\code{\link{hotdeck}()},
\code{\link{impPCA}()},
\code{\link{irmi}()},
\code{\link{kNN}()},
\code{\link{matchImpute}()},
\code{\link{rangerImpute}()},
\code{\link{regressionImp}()},
\code{\link{sampleCat}()}
}
\concept{imputation methods}