dataReshape: Reshape longitudinal data

Description Usage Arguments Value Author(s) Examples

View source: R/dataReshape.R

Description

Reshape longitudinal data with t time slices into a longitudinal data with two time slices.

Usage

1
dataReshape(theData = NULL, numTime = NULL)

Arguments

theData

a data frame containing longitudinal data to which the model will be fit.

numTime

number of time slices.

Value

A data frame representing longitudinal data with two time slices, such that the first n data points contain the relations that occur in the first two time slices t_0 and t_1. The next n data points contain the relations that occur in time slices t_1 and t_2. The i-th subset of n data points contain the relations in time slices t_i-1 and t_i. The reshaped data can be used as data input for function stableSpec when computing longitudinal data.

Author(s)

Ridho Rahmadi r.rahmadi@cs.ru.nl

Examples

1
2
3
the_data <- longiData4V3T
num_time <- 3
reshaped_the_data <- dataReshape(the_data, num_time)

rahmarid/stablespec documentation built on May 26, 2019, 9:51 p.m.