var_group_proc: Process group numeric variables

Description Usage Arguments Examples

View source: R/data_transformation.R

Description

This function is used for grouped numeric data processing.

Usage

1
var_group_proc(dat, ID = NULL, group = NULL, num_var = NULL)

Arguments

dat

A data.frame contained only predict variables.

ID

The name of ID of observations or key variable of data. Default is NULL.

group

The group of behavioral or status variables.

num_var

The name of numeric variable to process.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
dat = data.frame(id = c(1,1,1,2,2,3,3,3,4,4,4,4,4,5,5,6,7,7,
                            8,8,8,9,9,9,10,10,11,11,11,11,11,11),
                     terms = c('a','b','c','a','c','d','d','a',
                               'b','c','a','c','d','a','c',
                                  'd','a','e','f','b','c','f','b',
                               'c','h','h','i','c','d','g','k','k'),
                     time = c(8,3,1,9,6,1,4,9,1,3,4,8,2,7,1,
                              3,4,1,8,7,2,5,7,8,8,2,1,5,7,2,7,3))

time_series_proc(dat = dat, ID = 'id', group = 'terms',time = 'time')

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.