Coder Social home page Coder Social logo

synth_control_data's Introduction

SYNTH_CONTROL_DATA

Repositorio para almacenar todos los archivos creados de la data recaudada para el control sintético.

CÓDIGO: INFO_OFI <- read_xlsx("C:/Users/alvareoa/Desktop/TAREAS UPSA/MATERIAL DE TESIS/RStudio/(OFICIAL)TOTAL 51 PAÍSES.xlsx",sheet = "OFICI") %>% as.data.frame(.)

dataprep_out <- dataprep( foo = INFO_OFI, predictors = c( "GDP","GDPAGR","CF","GDEBT","CAGDP","PriceConv","InfR","IntR","DomCred","PPP","Imp (%GDP)","REGIME"), #Predictores predictors.op = "mean", special.predictors = list( list("OfiExchanR", 1998:2012, "mean" ) ), time.predictors.prior = 1998:2012, #Tiempo establecido en donde crear los predictores. dependent = "GDP", #Variable dependiente unit.variable = "ID", #Columna de donde están los grupos donantes y unidad de control. unit.names.variable = "PAIS", #Columna donde están los nombres del grupo de donantes y unidad de control. time.variable = "AÑO", #De donde se consiguen los predictores en tiempo. treatment.identifier = 1, #Aquí se le está diciendo cuál es la unidad tratada. Los grupos de donantes deben estar identificados con números. controls.identifier = c(2:51), #En esta se identifican por el ID de cada país. Bolivia es el 1 time.optimize.ssr = 1998:2011, #Período de tiempo para crear el control sintético. Criterio de minimización. time.plot = 1998:2021 #Total de tiempo pre y post tratamiento. )

synth_out <- synth(data.prep.obj = dataprep_out)

path.plot(synth_out,dataprep_out)

gaps.plot(synth_out, dataprep_out)

#synth_out$solution.w #synth_out$solution.v

synth_control_data's People

Contributors

augustusa1 avatar

Watchers

 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.