How to add a radio button with the help of buildQuickForm()
Its pretty simple to add it as a group of radio button, adding below snippet on how you can add (not tested)

    $choice = [];
    forach ($data as $id =&gt; $value) {
      $choice[$value[0]] = $form-&gt;createElement('radio', NULL, '', $value[1], $value[0]);
    }
    $form-&gt;addGroup($choice, 'element_name_of_radio_button', ts('label of radio button'));


HTH

Pradeep