Noncentrality parameter of chi-squared test statistic

This protocol is extracted from research article:

SMARTAR: an R package for designing and analyzing Sequential Multiple Assignment Randomized Trials

**
PeerJ**,
Jan 11, 2021;
DOI:
10.7717/peerj.10559

SMARTAR: an R package for designing and analyzing Sequential Multiple Assignment Randomized Trials

DOI:
10.7717/peerj.10559

Procedure

An important element of inference related to global tests in SMART is the noncentrality parameter *λ*^{∗} of chi-squared test statistics. The function ** getncp** helps obtain this value. In calling this function, the user needs to input the degrees of freedom, given the design structure of SMART, type I and II errors. Since no formula can calculate the value of

**List 3.** R code and results: Example 3

*> getncp( df = 5,alpha=0.05,beta=0.20, d = 0.0001,start=5)*

*[1] 12.8249*

This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ) and either DOI or URL of the article must be cited.

Note: The content above has been extracted from a research article, so it may not display correctly.

Q&A

Your question will be posted on the Bio-101 website. We will send your questions to the authors of this protocol and Bio-protocol community members who are experienced with this method. you will be informed using the email address associated with your Bio-protocol account.