nlstimedist (version 1.1.4)

tdData: Prepare nlstimedist data

Description

The data for nlstimedist needs to be in a particular format. This function prepares the data for the model.

Usage

tdData(data, x, y, group = NULL)

Arguments

data

The raw data to be cleaned.

x

The time variable.

y

The number of events.

group

The run numbers. This is NULL by default if you are only using the function for one run.

Value

A list containing

  • raw The raw data supplied to the function, i.e. data.

  • clean item The cleaned data to be supplied to timedist.

Examples

Run this code
# NOT RUN {
tdTilia <- tdData(tilia, x = "Day", y = "Trees")
tdTilia

# }

Run the code above in your browser using DataLab