form: Function to generate activity data frame for penalized...

Description Usage Arguments Value See Also Examples

View source: R/form.R

Description

This function generates the data frame necessary for further penalized multi-band learning.

Usage

1
form(lis, maxday = 14, id = NULL)

Arguments

lis

the list of activity data, with each element corresponding to the observation by one individual and the name of each element coresponding to the individual id. Specifically, each element is a nob by nday matrix, where each column is an observation by day.

maxday

the maximal number of days per individual in the observation, used to check the data format. The default is 14.

id

a vector of id names corresponding to the lis activity data.

Value

The activity data frame with 3 columns: ID, IDday, and activity.

See Also

bandSelect

Examples

1
2

xinyue-L/PML documentation built on Nov. 5, 2019, 12:29 p.m.