Get_adjacent_values_future: Documentation of Get_adjacent_values_future

Description Usage Arguments Value Author(s) Examples

View source: R/Core_Functions.R

Description

Documentation of function that grabs the non-missing adjacent values ahead of the missing value we are trying to impute

Usage

1
Get_adjacent_values_future(variable_vector, index, bin_size)

Arguments

variable_vector

Variable of which we would like to impute missing values in vector format

index

Index of missing value we would like to impute

bin_size

Number of non-missing future values to grab, which will be used for imputation

Value

Vector of non-missing adjacent values, as many as the indicated bin size, ahead of the missing value we are trying to impute

Author(s)

Jimin Lauren Yoo

Examples

1
2
temp=c(1,2,3,4,NA,NA,5,8,9,10,11,12,13,14, 15,16,17,18,19,20,21)
Get_adjacent_values_future(temp, index=4, bin_size=3)

jmybhm/Impute_Mobile_Health documentation built on July 23, 2019, 2:11 a.m.