Changes

Jump to navigation Jump to search
logitpw, probitpw, hrw
line 58:
mscore = :logitpw;
*Specify whether matching priority should be deterministic or random. If deterministic, priority goes to lower GVKEY
line 61:
randoption = 0;
*Specify additional constraints on valid matches (modify code within function mcexpr as desired)
lines 69-81:
function mcexpr(i)
function mcexpr #note that the below syntax is the simplest way to store a long string over multiple lines #(i.e., appending additional characters per line) #Also, note that order of operations forces us to put each condition in parentheses
#note that the below syntax is the simplest way to store a long string over multiple lines #(i.e., appending additional characters per line) #Also, note that order of operations forces us to put each condition in parentheses  mcriteria = "nonLBOs[:matchsubset] = (nonLBOs[:industrygroup3].== LBOs[$i,:industrygroup3])" mcriteria = mcriteria * " .* (nonLBOs[:decade].==LBOs[$i,:decade])" mcriteria = mcriteria * " .* (nonLBOs[:patentstock] .>= (LBOs[$i,:patentstock]*.8))" mcriteria = mcriteria * " .* (nonLBOs[:patentstock] .<= (LBOs[$i,:patentstock]*1.2))" mcriteria = mcriteria * " .* (nonLBOs[:matchpair] .== 0 )" return eval(parse(mcriteria)) end

Navigation menu