rmixnorm: generate a random mixture of normals

View source: R/rmixnorm.R

rmixnormR Documentation

generate a random mixture of normals

Description

generate a random mixture of normals

Usage

rmixnorm(n, p1, p2, shift, sel, CI)

Arguments

n

number of something

p1

pr(event) in subgroup 1

p2

pr(event) in subgroup 2

shift

scaled distance between means

sel

column name to select

CI

generate a CI (?)

Details

  let's see how dplyr verbs work in production :-O

Value

   a data.frame

Examples

pps = rmixnorm(20, p1=0.25, p2=0.5, shift=15, sel='Bodyweight', CI=0)


VanAndelInstitute/bifurcatoR documentation built on Oct. 13, 2024, 6:29 p.m.