Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

apollo_validateData

Validates data


Description

Checks consistency of the database with apollo_control, sorts it by indivID, and adds an internal ID variable (apollo_sequence)

Usage

apollo_validateData(database, apollo_control, silent)

Arguments

database

data.frame. Data used by model.

apollo_control

List. Options controlling the running of the code. See ?apollo_validateControl for details.

silent

Boolean. TRUE to keep the function from printing to the console. Default is FALSE.

Details

This function should be called after calling apollo_validateControl. Observations are sorted only if apollo_control$panelData=TRUE.

Value

Data.frame. Validated version of database.


apollo

Tools for Choice Model Estimation and Application

v0.2.4
GPL-2
Authors
Stephane Hess [aut], David Palma [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.