1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/utils.R 3\name{to_zelig_mi} 4\alias{to_zelig_mi} 5\title{Bundle Multiply Imputed Data Sets into an Object for Zelig} 6\usage{ 7to_zelig_mi(...) 8} 9\arguments{ 10\item{...}{a set of \code{data.frame}'s or a single list of \code{data.frame}'s} 11} 12\value{ 13an \code{mi} object composed of a list of data frames. 14} 15\description{ 16This object prepares multiply imputed data sets so they can be used by 17 \code{zelig}. 18} 19\note{ 20This function creates a list of \code{data.frame} objects, which 21 resembles the storage of imputed data sets in the \code{amelia} object. 22} 23\examples{ 24# create datasets 25n <- 100 26x1 <- runif(n) 27x2 <- runif(n) 28y <- rnorm(n) 29data.1 <- data.frame(y = y, x = x1) 30data.2 <- data.frame(y = y, x = x2) 31 32# merge datasets into one object as if imputed datasets 33 34mi.out <- to_zelig_mi(data.1, data.2) 35 36# pass object in place of data argument 37z.out <- zelig(y ~ x, model = "ls", data = mi.out) 38} 39\author{ 40Matt Owen, James Honaker, and Christopher Gandrud 41} 42