Hi there,
You can add it to field config array which you want to use Yoast Seo functionality:
$meta_boxes[] = array(
'title' => __( 'Test Meta Box', 'textdomain' ),
'post_types' => 'post',
'fields' => array(
array(
'id' => 'name',
'name' => __( 'Name', 'textdomain' ),
'type' => 'text',
'add_to_wpseo_analysis' => true,
),
array(
'id' => 'gender',
'name' => __( 'Gender', 'textdomain' ),
'type' => 'radio',
'options' => array(
'm' => __( 'Male', 'textdomain' ),
'f' => __( 'Female', 'textdomain' ),
),
),
array(
'id' => 'email',
'name' => __( 'Email', 'textdomain' ),
'type' => 'email',
),
array(
'id' => 'bio',
'name' => __( 'Biography', 'textdomain' ),
'type' => 'textarea',
),
),
);