Skip to content

Sample allocation yields a sample size larger than frame size #6

@szimmer

Description

@szimmer
library(SampleSelectR)

N <- (2:5)^3

n <- allocate("power", N, n.samp=99, power=1/3)
#> Sample allocation of 99 using power with the relevant inputs:
#>   N.h = 8, 27, 64, 125
#>   power = 0.333333333333333
#> 
#> Output:
#> 15, 21, 28, 35

N
#> [1]   8  27  64 125
n
#> [1] 15 21 28 35
n > N
#> [1]  TRUE FALSE FALSE FALSE

Created on 2025-10-21 with reprex v2.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions