typecast {mi}R Documentation

Variables type

Description

Function for determinig the variable type.

Usage

  typecast( object )
  ## S4 method for signature 'ANY':
  typecast( object )
  ## S4 method for signature 'matrix':
  typecast( object )
  ## S4 method for signature 'data.frame':
  typecast( object )  
  ## S4 method for signature 'list':
  typecast( object )

Arguments

object Vector, matrix, or data frame of data to determin the type of.

Value

The variable type of a vector, or vector of variable types for each variable in the dataset.

Author(s)

Masanao Yajima yajima@stat.columbia.edu, M.Grazia Pittau grazia@stat.columbia.edu, Andrew Gelman gelman@stat.columbia.edu

References

Andrew Gelman and M. Grazia Pittau, A flexible program for missing-data imputation and model checking, Technical report, Columbia University, New York.

See Also

mi

Examples

data(CHAIN)
class(CHAIN)

typecast(CHAIN[,1]) # for vector

typecast(as.matrix(CHAIN))# for matrix

typecast(CHAIN) # for data.frame

[Package mi version 0.02-02 Index]