# NOT RUN {
sigma = 5
n = 20
plotsgpower(alt = NA, null.lo = -1, null.hi = 1,
std.err = sigma/sqrt(n), x.lim = c(-8,8),
interval.type = 'confidence', interval.level = 0.05,
plot.option = 2, null.pt = 0)
plotsgpower(alt = c(-4,2),
null.lo = -1, null.hi = 1, std.err = sigma/sqrt(n),
x.lim = NA, interval.type = 'confidence',
interval.level = 0.05, plot.option = 2)
plotsgpower(alt = NA, null.lo = -1, null.hi = 1,
std.err = sigma/sqrt(n), x.lim = NA,
interval.type = 'confidence', interval.level = 0.05,
plot.option = 1, null.pt = NA)
plotsgpower(alt = c(-4,2), null.lo = -1, null.hi = 1,
std.err = 1, x.lim = NA, interval.type = 'likelihood',
interval.level = 0.05, plot.option = 1, null.pt = 0)
# }
Run the code above in your browser using DataLab