sample_means_ns: Takes a vector and from it takes a random sample of size n...

Description Usage Arguments Value

View source: R/sample_means_ns.R

Description

Takes a vector and from it takes a random sample of size n (each value in ns) then calculates sample mean and repeats it reps times

Usage

1
sample_means_ns(vec, reps, ns)

Arguments

vec

A vector

reps

A number indicating the number of times to repeat sample mean process

ns

A vector of numbers to represent the size of the sample

Value

A data frame with two columns, one for the sample mean and one for the associated sample size.


reillynski/samplemeans documentation built on Aug. 9, 2020, 12:35 a.m.