Farrokh Alemi, PhD Sunday, January 29, 2017

Slides:



Advertisements
Similar presentations
4.3: HOW ATOMS DIFFER ATOMIC NUMBER
Advertisements

Tutorial on Tukey Charts Farrokh Alemi, Ph.D. Sunday, 11/25/2007.
1 How to Provide Feedback to Your Sponsor? Farrokh Alemi, Ph.D.
Concepts of Database Management Seventh Edition
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
ACCESS PART 2. Objectives Database Tables Table Parts Key Field Query and Reports Import from Excel Link to Excel.
Selection Sort
1 times table 2 times table 3 times table 4 times table 5 times table
XmR Chart Farrokh Alemi, Ph.D.. Purpose of Control Chart  Real or random.  Tell a story of changes in outcomes of the process.
PAIRED TEST Farrokh Alemi Ph.D.. Framework for Hypothesis Testing.
Concepts of Database Management, Fifth Edition
VARIANCE & STANDARD DEVIATION By Farrokh Alemi, Ph.D. This lecture is organized by Dr. Alemi and narrated by Yara Alemi. The lecture is based on the OpenIntro.
Introduction to System Change Farrokh Alemi Ph.D..
Using Special Operators (LIKE and IN)
Mass s Tailored to Individuals Farrokh Alemi, Ph.D.
HYPOTHESIS TESTING FRAMEWORK Farrokh Alemi Ph.D..
0 Calculation of Return on Investments Farrokh Alemi, Ph.D.
Selection Sort
(SQL - Structured Query Language)
$100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300.
Chapter 4 AVERAGE ATOMIC MASS. Atomic Mass… n The weighted average of the masses of all the naturally occurring isotopes of that element. n Is not a whole.
Tables Learning Support
INFERENCE Farrokh Alemi Ph.D.. Point Estimates Point Estimates Vary.
Database to HTML and Back again A programmers tale.
Measuring Impact of a Cause Farrokh Alemi Ph.D.. Definition.
DATA BASICS By Farrokh Alemi, Ph.D.. How best to collect data? Statistics Is.
COLLEGE ADMISSION TEST SCORES Student IDReadingWritingMathTotal S S S S S
Relational Databases Today we will look at: Different ways of searching a database Creating queries Aggregate Queries More complex queries involving different.
IFS180 Intro. to Data Management Chapter 10 - Unions.
Data Modeling (Entity Relationship Diagram)
October 20, 2016 Farrokh Alemi, PhD.
Queries.
Calculating Average Atomic Mass
5.1 – Isotopes and average atomic mass
Calculation of Present Value
Times Tables.
Dead Man Visiting Farrokh Alemi, PhD Narrated by …
Has Payment, for AMI, to above National Average Hospitals, Increased?
Merge Data & Calculate Average
P-Chart Farrokh Alemi, Ph.D..
GROUP BY & Subset Data Analysis
SQL for Calculating Likelihood Ratios
Types of Joins Farrokh Alemi, Ph.D.
Rank Order Function Farrokh Alemi, Ph.D.
Procedures Organized by Farrokh Alemi, Ph.D. Narrated by Yara Alemi
Farrokh Alemi, Ph.D. Revised by Akhil Anto
Has Rate of Hospitals Exceeding National Payment for AMI Changed?
Comparing two Rates Farrokh Alemi Ph.D.
Constructing a Multi-Morbidity Index from Simulated Data
Has Rate of Changed for Southeast Alabama Medical Center?
Expectation And Variance of Random Variables
Dead Patients Visiting
Multivariate Analysis Project
Convert from Variable Character to Float
Causal Control Chart Farrokh Alemi, Ph.D..
Indexing & Computational Efficiency
Propagation Algorithm in Bayesian Networks
Analysis of Observed & Expected Infections
Query Functions.
Unit 3 Review (Calculator)
½ of 6 = 3.
Averages: Mean from a Frequency Table
Expectation Farrokh Alemi Ph.D.
3 times tables.
6 times tables.
Calculate 9 x 81 = x 3 3 x 3 x 3 x 3 3 x 3 x 3 x 3 x 3 x 3 x =
Expectation And Variance of Random Variables
Exponential Distribution Ends Up Normal
Tukey Control Chart Farrokh Alemi, Ph.D.
Skills Practice pg 265 – 270 A relation is a set of ordered pairs while a function is a special type of relation where each input has one unique output.
Presentation transcript:

Farrokh Alemi, PhD Sunday, January 29, 2017 Calculate Averages Farrokh Alemi, PhD Sunday, January 29, 2017

Average Age for Diagnoses in File 1

Average Age for Diagnoses in File 1 SELECT DxAge_1.icd9 , Sum(DxAge_1.AgeAtDx) AS S1 , Count(DxAge_1.AgeAtDx) AS C1 , Avg(DxAge_1.AgeAtDx) AS Avg1 , StDev(DxAge_1.AgeAtDx) AS StDev1 INTO DxAvg1 FROM DxAge_1 GROUP BY DxAge_1.icd9;

Select Unique Diagnoses SELECT DxAge_1.icd9 FROM dxage_1 GROUP BY DxAge_1.icd9 UNION SELECT DxAge_2.icd9 FROM dxage_2 GROUP BY DxAge_2.icd9 SELECT DxAge_3.icd9 FROM dxage_3 GROUP BY DxAge_3.icd9 SELECT DxAge_4.icd9 FROM dxage_4 GROUP BY DxAge_4.icd9 Read the file and write it to database, so you do not need to redo it again SELECT DxUnion.icd9 INTO Dx FROM DxUnion; 10,762 Unique Diagnoses in Dx Table

Weighted Averages Across Files AvgAll: (IIf([C1] Is Null,0,[C1])*IIf([Avg1] Is Null,0,[Avg1])+IIf([C2] Is Null,0,[C2])*IIf([Avg2] Is Null,0,[Avg2])+IIf([C3] Is Null,0,[C3])*IIf([Avg3] Is Null,0,[Avg3])+IIf([C4] Is Null,0,[C4])*IIf([Avg4] Is Null,0,[Avg4]))/(IIf([c1] Is Null,0,[C1])+IIf([c2] Is Null,0,[C2])+IIf([c3] Is Null,0,[C3])+IIf([c4] Is Null,0,[C4]))

Weighted Averages Across Files SELECT Dx.icd9 , DxAvg1.Avg1 , DxAvg2.Avg2 , DxAvg3.Avg3 , DxAvg4.Avg4 , (IIf([C1] Is Null,0,[C1])*IIf([Avg1] Is Null,0,[Avg1])+ IIf([C2] Is Null,0,[C2])*IIf([Avg2] Is Null,0,[Avg2])+ IIf([C3] Is Null,0,[C3])*IIf([Avg3] Is Null,0,[Avg3])+ IIf([C4] Is Null,0,[C4])*IIf([Avg4] Is Null,0,[Avg4])) / (IIf([c1] Is Null,0,[C1])+ IIf([c2] Is Null,0,[C2])+ IIf([c3] Is Null,0,[C3])+ IIf([c4] Is Null,0,[C4])) AS AvgAll FROM (((Dx LEFT JOIN DxAvg1 ON Dx.icd9 = DxAvg1.icd9) LEFT JOIN DxAvg2 ON Dx.icd9 = DxAvg2.icd9) LEFT JOIN DxAvg3 ON Dx.icd9 = DxAvg3.icd9) LEFT JOIN DxAvg4 ON Dx.icd9 = DxAvg4.icd9;

Sorted Results