dot-new_StudySpecification: (Internal) Create a new 'StudySpecification' object.

.new_StudySpecificationR Documentation

(Internal) Create a new StudySpecification object.

Description

Helper function to create a new StudySpecification. Called internally from rct_spec(), rd_spec() or obs_spec().

Usage

.new_StudySpecification(
  form,
  data,
  type,
  subset = NULL,
  call = NULL,
  na.fail = TRUE,
  called_from_lmitt = FALSE
)

Arguments

form

Formula to create StudySpecification, see help for rcr_spec(), rd_spec() or obs_spec() for details.

data

The data set

type

One of "RCT", "RD", or "Obs"

subset

Any subset information

call

The call generating the StudySpecification.

na.fail

Should it error on NA's (TRUE) or remove them (FALSE)?

called_from_lmitt

Logical; was this called inside lmitt(), or was it called from *_spec() (default).

Value

A new StudySpecification object


propertee documentation built on Aug. 22, 2025, 1:09 a.m.