Compute Appropriate Sample Sizes

DESCRIPTION:

Compute the appropriate sample sizes, based on the given sample size and level.

USAGE:

nice.n(n, J) 

REQUIRED ARGUMENTS:

n
sample size.
J
level.

VALUE:

two non-negative integers.

DETAILS:

The nice.n function computes two sample sizes, based on given sample size n and level J. The first one is the biggest integer <= n which is divisible by 2^J; and the second one is the smallest integer >= n which is divisible by 2^J.

SEE ALSO:

, .