powered by
This function is set to 0 and solved for x, the non-centrality parameter to determine the sample size in ss.calc
ss.calc
ncp.search(x, power, Alpha, df)
the non-centrality parameter
the desired power
the desired type 1 error rate
the degrees of freedom for the likelihood ratio test
numeric value of the function
# NOT RUN { ncp.search(x = 7.848861, pow = 0.8, Alpha = 0.05, df=1) # }
Run the code above in your browser using DataLab