get_ys_norm: Generate normally distributed continuous outcomes

View source: R/get_ys_and_draws.R

get_ys_normR Documentation

Generate normally distributed continuous outcomes

Description

Used internally. Function factory used to generate a function that generates outcomes from normal distributions.

Usage

get_ys_norm(arms, means, sds)

Arguments

arms

character vector, arms as specified in setup_trial_norm().

means

numeric vector, true means in all arms as specified in setup_trial_norm().

sds

numeric vector, true standard deviations (sds) in all arms as specified in setup_trial_norm().

Value

A function which takes the argument allocs (a character vector with the allocations) and returns a numeric vector of the same length with the corresponding, randomly generated outcomes (from normal distributions).


adaptr documentation built on May 29, 2024, 7:48 a.m.