simulateData-class: simulateData

Description Slots

Description

A class and generator function to store a function which simulates baseline and outcome data and adds it to the current data.

Slots

fun

Does the simulation and adds the new data. This function should allow any number of arguments to be passed to it using .... This function must return the data.

To reduce the risk of errors we recommend specifying the inputs required without defaults. This way if none are specified in p for the trialDesign class then it will throw a meaningful error.

This function should also be capable of creating the dataframe if provided with an empty data.frame.


finite2/trialSim documentation built on May 16, 2019, 12:54 p.m.