Maximizing Funding through Library Expansion: A Data Analysis Study
100 likes | 184 Vues
Explore the correlation between library presence and funding amounts using data analysis techniques. This study highlights the importance of libraries in securing financial resources.
Maximizing Funding through Library Expansion: A Data Analysis Study
E N D
Presentation Transcript
MONEY?? LIBRARIES?? Felix Kabo, M.Arch, Ph.D.
usebdc2014 createtableill_institutions ( Institution varchar(255), City varchar(125), Statevarchar(50), Zipcodevarchar(9), RU_VHvarchar(1), ARLvarchar(1), ACAD_RESvarchar(1), Public_100K varchar(1), Public_CAvarchar(1), latitude float, longitude float ); bulkinsertill_institutions from'C:\Users\Felix Kabo\Desktop\BDC Knowledge Institutions.txt' with (firstrow=2); --406 rows
createtable nihgrants2013 ( ORGANIZATION varchar(255), AWARDS int, FUNDING int, CITY varchar(125), STATEvarchar(2) ); bulkinsert nihgrants2013 from'C:\Users\Felix Kabo\Desktop\NIH Funding FY2013.txt' with (firstrow=2); --2292 rows
selectsum(FUNDING)asmoneyflows,upper(CITY)as city,upper(STATE)asstate intomoneysum from nihgrants2013 groupby CITY,STATE orderbymoneyflows --813 rows select*intoknowledge_houses fromill_institutions leftjoinstates_abbreviations onill_institutions.State= states_abbreviations.ST --406 rows
selectCOUNT(Institution)asknowledge_counts,upper(City)as cities,ABBRas states fromknowledge_houses groupby City,ABBR orderbyknowledge_counts --318 rows selectCOUNT(Institution)asknowledge_counts,upper(City)as cities,ABBRas states fromknowledge_houses whereABBR!='NULL' groupby City,ABBR orderbyknowledge_counts --279 rows
selectCOUNT(Institution)asknowledge_counts,upper(City)as cities,ABBRas states intototal_knowledge fromknowledge_houses whereABBR!='NULL' groupby City,ABBR orderbyknowledge_counts --279 rows select*intomoney_knowledge frommoneysum leftjointotal_knowledge onmoneysum.city=total_knowledge.cities andmoneysum.state=total_knowledge.states --813 rows
select*frommoney_knowledge where states!='NULL' orderbymoneyflows --194 rows select*frommoney_knowledge whereknowledge_counts>0 orderbymoneyflows --194 rows
--Finally, take easy route and calculate correlations in Stata...or do it in SQL altertablemoney_knowledge altercolumnmoneyflowsbigint declare @mean1 decimal(20,6) declare @mean2 decimal(20,6) select @mean1=AVG(moneyflows*1.0) ,@mean2=AVG(knowledge_counts*1.0) frommoney_knowledge whereknowledge_counts>0; select (SUM((moneyflows*1.0-@mean1)*(knowledge_counts*1.0-@mean2))/COUNT(*)) /((STDEVP(moneyflows*1.0)*STDEVP(knowledge_counts*1.0)))as correlation frommoney_knowledge whereknowledge_counts>0; --0.554758521032079 Is it elegant? Maybe not...but you get the picture