I have created RadioGroup and RadioButton dynamically as following:
RadioGroup
RadioButton
RadioGroup radioGroup = new RadioGroup(context);
In the XML file set the android:checkedButton field in your RadioGroup, with the id of your default RadioButton:
android:checkedButton