## R-Code for Power in 2×2 Cross-over [🇷 for BE/BA]

Hi ElMaestro,

  y[i]= sampleN.TOST(CV=CV, targetpower=tpow, theta0=x[i], print=FALSE)[1,7]

A suggestion.

❝ PS: Correct, I am not entirely comfy with the  tapply, sapply, apply family of functions.

You are not alone. To complicate things, in PowerTOST many functions are not or only partly vectorized. See the script in this article for a remedy (click on to show it).

Dif-tor heh smusma 🖖🏼 Довге життя Україна!
Helmut Schütz

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes