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 -99
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 =1(Died) then
Add the value to Bilirubin_died_sum
Add the value2 to Bilirubin_died_square-sum (for the std. dev.)
Add one to the 'good' Bilirubin_died_record_count
Otherwise (must have survived)
Add the value to Bilirubin_survive_sum
Add the value 2 to Bilirubin_survive_square-sum (for the std. dev.)
Add one to the 'good' Bilirubin_survive_record_count
Next patient
End If
Next testresult
Compute Bilirubin_died_Average = the B ilirubin_died_sum divided by the 'good'
Bilirubin_died_record_count
Compute Bilirubin_died_Std. Dev. = Bilirubin_died_squared-sum divided by the 'good' Bilirubin_died_record_count minus the Bilirubin_died_average squared all raised to the (1/2) power.
Compute Bilirubin_survive_Average = the Bilirubin_survive_sum divided by the 'good' Bilirubin_survive_record_count
Compute Bilirubin_survive_Std. Dev. = Bilirubin_survive_squared-sum divided by the 'good' Bilirubin_survive_record_count minus Bilirubin_survive_average squared all raised to (12) power.
Add Info to List box
Do this for each of the 3 remaining blood characteristics.
Use LINQ to create a structured array called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!