File: make.blots.Rd

package info (click to toggle)
r-cran-mice 3.17.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,380 kB
  • sloc: cpp: 121; sh: 25; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 921 bytes parent folder | download | duplicates (3)
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
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/blots.R
\name{make.blots}
\alias{make.blots}
\title{Creates a \code{blots} argument}
\usage{
make.blots(data, blocks = make.blocks(data))
}
\arguments{
\item{data}{A \code{data.frame} with the source data}

\item{blocks}{An optional specification for blocks of variables in
the rows. The default assigns each variable in its own block.}
}
\value{
A matrix
}
\description{
This helper function creates a valid \code{blots} object. The
\code{blots} object is an argument to the \code{mice} function.
The name \code{blots} is a contraction of blocks-dots.
Through \code{blots}, the user can specify any additional
arguments that are specifically passed down to the lowest level
imputation function.
}
\examples{
make.predictorMatrix(nhanes)
make.blots(nhanes, blocks = name.blocks(c("age", "hyp"), "xxx"))
}
\seealso{
\code{\link{make.blocks}}
}