Code Monkey home page Code Monkey logo

geosimex's Introduction

geoSIMEX

geoSIMEX R Package

Example of geoSIMEX

In R, open "Example/geoSIMEX_example.R"

geoSIMEX documentation

In R, open "man/geoSIMEX.Rd" and click "preview"

Relevant Functions

  1. geoSIMEX - linear regression with spatial uncertainty
  2. expected_aid_ROI - calculates expected aid with in ROI
  3. prob_aid_ROI - calculates probability of aid allocated to ROI
  4. calc_lambda - calculates spatial uncertainty of aid project dataset

Data Requirements

geoSIMEX requires two datasets: (1) aid project data, and (2) country-level data (where the unit of analysis could be, for example, sub-counties). Both the aid finance and country-level data need to have hierarchies of administrative divisions. For example, in the aid finance data, if aid was allocated to a sub-county, information is needed about which district, region, and country that sub-county falls within. In country-level data, variables are needed for the sub-county, district, region and country. Names of these variables must be the same between the two datasets (e.g., if "ADM_3_NAME" is the variable name for sub counties in the country-level dataset, there must be a similar "ADM_3_NAME" in the aid project dataset.

Needed Fixes

  1. geoSIMEX needs ADM names to be entered as numbers; need to allow ADM info to be entered as strings
  2. In expected_aid_ROI function, make inputs to "probAidAssume" and "dollar_set" be strings of variable names instead of arrays of data. This will make inputs consistent with inputs for geoSIMEX function.

geosimex's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.