Usage
ss.fromdata.neff(thetahat, m0, m1, ss.ratio = 1, thetaB = 0,  sig.level = 0.05, real.power = 0.8, nominal.power = NULL,  alternative = c("two.sided", "one.sided"),  MINN0 = 2, MAXN0 = Inf, subdivisions = 1000)
Arguments
thetahat
estimated standardized difference in means
m0
sample size from control group of existing data
m1
sample size from treatment group of existing data
ss.ratio
n1/n0, where n0 (n1) is sample size of control (treatment) group for proposed study
thetaB
boundary value between null and alternative hypotheses for one-sided tests (see details)
sig.level
 significance level (Type I error)
real.power
minimum power that you want the sample size to achieve, only .8 or .9 allowed
alternative
One- or two-sided test
MINN0
minimum sample size for control group 
MAXN0
maximum sample size for control group
subdivisions
 number of subdivisions for numerical integration