read {npde}R Documentation

Read data into structures (internal)

Description

Creates an NpdeData object containing the observed data, either from disk or from a dataframe

Usage

read(object, dat, detect=TRUE, verbose=FALSE, ...)

## S4 method for signature 'NpdeData'
read(object, dat, detect = TRUE, verbose = FALSE, ...)

## S4 method for signature 'NpdeSimData'
read(object, dat, detect = FALSE, verbose = FALSE, ...)

Arguments

object

an object

dat

a dataframe containing the data to be analysed

detect

a boolean; if TRUE, automatic recognition of names will be attempted to detect necessary items for a NpdeData, these include longitudinal data structure, missing data and censoring information for a NpdeSimData, the required columns should be called idsim, xsim, ysim, representing respectively simulated id, simulated predictor and simulated response

verbose

a boolean; messages are printed if verbose is TRUE (defaults to FALSE)

...

additional arguments for compatibility with generic

Value

an object of class "NpdeData" or "NpdeSimData"


[Package npde version 3.5 Index]