Question: # Assuming 'Thyroid' is your data frame # Combine 'referral _ source' values into two categories Thyroid$referral _ source < - ifelse ( Thyroid$referral _
# Assuming 'Thyroid' is your data frame
# Combine 'referralsource' values into two categories
Thyroid$referralsource ifelseThyroid$referralsource "SVI", "SVI", "Other"
# Convert the response variable 'target' to a factor
Thyroid$target asfactorThyroid$target
# Perform logistic regression
logisticmodel glmtarget ~ data ThyroidncolThyroid family "binomial"
# Display the summary of the logistic regression
summarylogisticmodel
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
