getmean: Row Means Estimates

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mtsdi.r

Description

Estimate the row mean from a mtsdi object regarding a fixed number of imputed values

Usage

1
getmean(object, weighted=TRUE, mincol=1, maxconsec=3)

Arguments

object

imputation object

weighted

If TRUE, weights returned by mnimput will be used form mean computation

mincol

integer for the minimun number of valid values by row

maxconsec

integer for the maximum number of consecutive missing values in a column

Details

It is useful just in case one wants row mean estimated. If log tranformation was used, mean is adjusted accordingly.

Value

A vector of of rows mean with length n, where n is the number of observations.

Author(s)

Washington Junger [email protected] and Antonio Ponce de Leon [email protected]

See Also

mnimput, getmean, edaprep

Examples

1
2
3
4
data(miss)
f <- ~c31+c32+c33+c34+c35
i <- mnimput(f,miss,eps=1e-3,ts=TRUE, method="spline",sp.control=list(df=c(7,7,7,7,7)))
m <- getmean(i,2)

mtsdi documentation built on Jan. 24, 2018, 1:06 a.m.

Related to getmean in mtsdi...