Question: Use LINQ to create a structured array called BloodTests from the text and XML files with the PatientID, and Bilirubin. For Each testresult in BloodTests
Use LINQ to create a structured array called BloodTests from the text and XML files with the PatientID, and Bilirubin.
For Each testresult in BloodTests
If the value for Bilirubin is not
Use LINQ to create an array that contains whether or not the patient lived or died from the record in the database with the same PatientID as this testresult
For Each patient in Patients there should be exactly one
If Alive Died then
Add the value to Bilirubindiedsum
Add the value to Bilirubindiedsquaresum for the std dev.
Add one to the 'good' Bilirubindiedrecordcount
Otherwise must have survived
Add the value to Bilirubinsurvivesum
Add the value to Bilirubinsurvivesquaresum for the std dev.
Add one to the 'good' Bilirubinsurviverecordcount
Next patient
End If
Next testresult
Compute BilirubindiedAverage the B ilirubindiedsum divided by the 'good'
Bilirubindiedrecordcount
Compute BilirubindiedStd Dev. Bilirubindiedsquaredsum divided by the 'good' Bilirubindiedrecordcount minus the Bilirubindiedaverage squared all raised to the power.
Compute BilirubinsurviveAverage the Bilirubinsurvivesum divided by the 'good' Bilirubinsurviverecordcount
Compute BilirubinsurviveStd Dev. Bilirubinsurvivesquaredsum divided by the 'good' Bilirubinsurviverecordcount minus Bilirubinsurviveaverage squared all raised to power.
Add Info to List box
Do this for each of the remaining blood characteristics.
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
