Skip to content
Prev 385820 / 398503 Next

Problem with contour(): typo

I would assume the following snippet does what you want - note the use of outer with anonymous function wrapping powerTOST:

z <- outer(xs, ys, function(x, y)power.TOST(CV = y, theta0 = x, design = "2x2x4", method = "central", n = res[1]))
contour(xs, ys, z)

	Benno