EduBin

From InterSciWiki
Jump to: navigation, search

EduBin EduR-1.3

Template for the Binford Dataset

create_EduR_1.5Dist_Eff.PCAP&ANIMxBWEAL&PCsizesqEcorich

AnimXbwealth=sccs$v206*(sccs$v208==1)*1, 
 setwd('/Users/drwhite/Documents/3sls/sccs/')
  library(sccs)
  data(sccs)                                  
  source("examples/create/create_EduR_1/create_EduR_1.5DistB_Eff.NoPCAP&ANIMxBWEAL_PCsizesqEcorich.R") #
  source("R_3_s_ols/two_stage_ols.R")                                                
  source("examples/create/R_run/run_model_79.R")

create_EduR_1.5Dist_Eff.PCAP&ANIMxBWEAL&PCsizesqEcorich

have to construct file='dist25wm.dta' so that

dd<-read.dta(file='dist25wm.dta') 
dd[1:5,1:5]
 ord          navn       x1       x2       x3
1   1 NamaHottentot 0.000000 0.052952 0.049377
2   2   KungBushmen 0.049002 0.000000 0.046522
3   3        Thonga 0.047840 0.048707 0.000000
4   4          Lozi 0.044590 0.049636 0.044677
5   5        Mbundu 0.043513 0.047405 0.040963


 setwd('/Users/drwhite/Documents/3sls/0Bin/')
  library(foreign)
  load("LB.Rdata",.GlobalEnv)                                 
  source("examples/create/create_EduB_7/create_EduB_7shamans.R") 
  #setwd("/Users/drwhite/Documents/3sls/0Bin/examples/create/create_EduB_7
  source("R_3_s_ols/two_stage_ols.R")                                                
  source("examples/create/R_run/run_model.R")
 #so:
 load("distBin339.Rdata",.GlobalEnv)
 write.dta(distBin339, file='distBin339.dta')
Error in write.dta(distBin339, file = "distBin339.dta") : 
 object 'distBin339' not found