rnorm.by.id | R Documentation |
Populates 1 sample from normal distribution for each group (id or subject, or trial, or other)
rnorm.by.id(id, mean = 0, sd = 1)
id |
vector with group information |
mean |
mode of the normal distribution |
sd |
standard deviation of the normal distribution |
samples of a normal distribution, one for each level of group
sample.by.id
df = example.pkpdData()
sam = rnorm.by.id(df$id, mean = 0, sd = 1)
tapply(sam,df$id, unique)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.