Adjust Per-capita Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: loadFile.do?objectId=14566&objectType=file
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Amit Belani (View more)

Adjust Per-capita script description:




Publisher review:
Adjust Per-capita - Adjust per capita using historical U.S. population data. adjustpc(VALUEFORYEAR1,YEAR1,YEAR2) adjusts the number VALUEFORYEAR1 from what it was in YEAR1 to what it was in YEAR2. The adjustment is per capita, based on historical population data previously obtained from the U.S. Census Bureau.VALUEFORYEAR1 can be any number. YEAR1 and YEAR2 each can both be any year from 1900 to the current year. YEAR2 is optional, with its default value being the current year.The input arguments can either be single numbers, or row or column vectors of the same size.Population data is read from the the data file. It is assumed that the file contains data for both YEAR1 and YEAR2. This file can be updated using a text editor - if and when this needs to be done. Microsoft Excel should not be used to do this, as it can alter the date format. The updated file must contain data for all years up to the current year.EXAMPLES:adjustpc(1,1900,2007) returns 3.9542Because in this case ValueForYear1 equals 1, this indicates that the population in 2007 was 3.9542 times that in 1900.adjustpc(1,1900) also returns 3.9542adjustpc(1,2007,1900) returns 0.2529adjustpc(10,1945,1960) returns 12.9117This indicates that 10 units of something (e.g. dollars) for the entire population in 1945 would correspond to having 12.9117 units of that thing for the entire population in 1960.ValueForYear1=[4 1 15];Year1=[1920 1973 2002];Year2=repmat(2005,size(Year1));adjustpc(ValueForYear1,Year1,Year2) returns [11.1405 1.3992 15.4363]REMARKS:For efficiency, population data is read from the data file into RAM only once per session, after which it stays in RAM for the remainder of the session. For more implementation details, see the relevant PopForYear subfunction section of the code.
Adjust Per-capita is a Matlab script for Financial Modeling and Analysis scripts design by Amit Belani. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Adjust Per-capita - Adjust per capita using historical U.S. population data.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

The new Firefox 37 comes with improved HTTP / 2 and superior HMTL5 compatibility with YouTube

The new Firefox 37 comes with improved HTTP / 2 and superior HMTL5 compatibility with YouTube

The popular browser Firefox reached version 37, bringing a series of news but not as significant as other versions.

Posted on: 03 Apr 2015 11:11 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Google Chrome version 42 comes with implementation of interesting options for software developers who want to turn their websites into complex Web applications: Push notification system which is permanently active.

Posted on: 17 Mar 2015 07:57 by A. Brown

Gamers, Microsoft presents the advantages of DirectX 12 and 11.3 platforms used by new games for Windows 10

Gamers, Microsoft presents the advantages  of DirectX 12 and 11.3 platforms used by new games for Windows 10

The Windows 10 preview event brought also to the attention of gamers a demonstration of the advantages of the new DirectX 12 API by Microsoft, which announced several technologies providing integration with Xbox One game consoles.

Posted on: 27 Jan 2015 09:15 by A. Brown

Android devices now have access to Google Chrome 40

Android devices now have access to Google Chrome 40

Finally was officially released version 40 of Chrome browser for Android devices, iOS and Windows PCs, coming up with an interesting range of bug fixes and optimizations.

Posted on: 23 Jan 2015 13:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 1.0 out of 5
Based on 1 ratings. 1 user reviews.

  • Currently 1.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5