iematch : created helpfile

iematch : created helpfile

First draft of help file for iematch

{smcl}
{* }{...}
{hline}
help for {hi:iematch}
{hline}

{title:Title}

{phang2}{cmdab:iematch} {hline 2} Match observations in one group towards observations in another group based on a single continous variable.

{title:Syntax}

{phang2}
{cmdab:iematch}
, {cmdab:grp:dummy(}{it:varname}{cmd:)} {cmdab:match:var(}{it:varname}{cmd:)}
[{cmdab:id:var(}{it:varlist}{cmd:)} {cmdab:m1} {cmdab:maxdiff(}{it:numlist}{cmd:)} {cmdab:seed(}{it:numlist}{cmd:)}
{cmdab:matchid:name(}{it:string}{cmd:)} {cmdab:matchdi:ffname(}{it:string}{cmd:)}
{cmdab:matchre:sultname(}{it:string}{cmd:)} {cmdab:matchco:untname(}{it:string}{cmd:)}
]

{marker opts}{...}
{synoptset 28}{...}
{synopthdr:options}
{synoptline}
{synopt :{cmdab:grp:dummy(}{it:varname}{cmd:)}}The group variable. Obs with 1 is mathced towards obs with 0{p_end}
{synopt :{cmdab:match:var(}{it:varname}{cmd:)}}The variable with a continous value to mathc on{p_end}
{synopt :{cmdab:id:var(}{it:varlist}{cmd:)}}The uniquely and fully identifying ID varaible. Used to indicate which observation is matched with which. If omitted an ID variable will be created.{p_end}
{synopt :{cmdab:m1}}Allows many-to-one matches. The default is to only allow one-to-one matches{p_end}
{synopt :{cmdab:maxdiff(}{it:numlist}{cmd:)}}Set a maximum difference allowed in {cmdab:matchvar()}. If not match exist within this difference then the observation will remain unmatched{p_end}
{synopt :{cmdab:maxdiff(}{it:numlist}{cmd:)}}If two observations have the same value in {cmdab:matchvar()}, then they will be orderd randomly. If seed is not set already, then provide a seed so that the randomziation is stable. {p_end}
{synopt :{cmdab:matchid:name(}{it:string}{cmd:)}}Manually set the name of the variable that indicates which other observation the observations are matched with. The default is _matchID{p_end}
{synopt :{cmdab:matchdi:ffname(}{it:string}{cmd:)}}Manually set the name of the variable that indicates the differnece in {cmdab:matchvar()} in the match. The default is _matchDiff{p_end}
{synopt :{cmdab:matchre:sultname(}{it:string}{cmd:)}}Manually set the name of the variable that indicates if an observation was matched, or provide a reason if it was not. The default is _matchOrReason{p_end}
{synopt :{cmdab:matchco:untname(}{it:string}{cmd:)}}Manually set the name of the variable that indicates how many observations an obsersvation is matched with in a many-to-one match. The default is _matchCount{p_end}
{synoptline}

{title:Description}

{pstd}{cmdab:iematch} matches observations with the value 1 in the variable in {cmd:grpdummy()} towards observations with value 0. Observations with missing values will be excluded frmo the matching.

{pstd}{cmdab:iematch} uses the Stable Marriage algorithm when performing a one-to-one match. This algorthm always have a solution and is stable in terms of replication.

{pstd}For example,

{title:Options}

{phang}{cmdab:grp:dummy(}{it:varname}{cmd:)}

{phang}{cmdab:match:var(}{it:varname}{cmd:)}

{phang}{cmdab:id:var(}{it:varlist}{cmd:)}

{phang}{cmdab:m1}

{phang}{cmdab:maxdiff(}{it:numlist}{cmd:)}

{phang}{cmdab:seed(}{it:numlist}{cmd:)}

{phang}{cmdab:matchid:name(}{it:string}{cmd:)}

{phang}{cmdab:matchdi:ffname(}{it:string}{cmd:)}

{phang}{cmdab:matchre:sultname(}{it:string}{cmd:)}

{phang}{cmdab:matchco:untname(}{it:string}{cmd:)}

{title:Stored results}

{pstd}
{cmdab:iematch} stores the following results in {hi:r()}:

{title:Examples}

{pstd}
A series of examples on how to specify command, and how to evaluate output:

{pstd}{hi:Example 1.}

{pstd}{hi:Example 2.}

{title:Acknowledgements}

{phang}I would like to acknowledge the help in testing and proofreading I received in relation to this command and help file from (in alphabetic order):{p_end}

{title:Author}

{phang}Kristoffer Bjrkefur, The World Bank, DECIE

{phang}Please send bug-reports, suggestions and requests for clarifications
		 writing "ietools iematch" in the subject line to:{break}
		 kbjarkefur@worldbank.org

{phang}You can also see the code, make comments to the code, see the version
		 history of the code, and submit additions or edits to the code through
		 the github repository of ietoolkit:{break}
		 {browse "https://github.com/worldbank/ietoolkit"}

error: pathspec 'iematch.sthlp' did not match any file(s) known to git


starting work version

starting work version

work version with initial values

cap	program drop	ieimpgraph
	program define 	ieimpgraph

	syntax varlist

	mat beta_ = e(b)

	local counter = 0
	local textfile = "Mrijan"
	local date = "$S_DATE"

foreach var of local varlist{
		local `counter' = `counter' + 1
		di `counter'
		scalar beta_`var' = _b[`var']
		noi display beta_`var'

		scalar coeff_se_`var' = _se[`var']
		display coeff_se_`var'

		scalar obs_`var' = r(N)
		display obs_`var'

		display `counter'
	}

end

error: pathspec 'ieimpgraph2.do' did not match any file(s) known to git


Include all relevant do files

Include all relevant do files

redo-ifchange ../../../bin/a dxforth.asm
exec >&2
../../../bin/a from dxforth.asm to $3

error: pathspec 'software/src/e2/dxforth/dxforth.bin.do' did not match any file(s) known to git


forgot wave forms

forgot wave forms

onerror {resume}
quietly WaveActivateNextPane {} 0
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/clk_in
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/reset_in
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/switches
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/leds
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/push_buttons
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/RX
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/TX
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/anode
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/cathode
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/sck_o
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/ncs_o
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/mosi_o
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/miso_i
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/int1
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/int2
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/clk_sys
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/interrupt_ack
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/locked
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/port_id
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/read_strobe
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/reset_sys
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/write_strobe
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/in_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/sw0_out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/sw1_out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/led0_out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/led1_out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/uart_data_out
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/display_data_out
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/buttons_out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/spi_out_port
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/spi_interrupt
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/uart_interrupt
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/button_interrupt
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/interrupt
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/kcpsm6_sleep
add wave -noupdate -expand -group DUT -radix hexadecimal /soc_testbench/dut/button_disconnect
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 1} {0 ps} 0}
quietly wave cursor active 0
configure wave -namecolwidth 326
configure wave -valuecolwidth 100
configure wave -justifyvalue left
configure wave -signalnamewidth 0
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
configure wave -gridoffset 0
configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0
configure wave -timelineunits ps
update
WaveRestoreZoom {0 ps} {895 ps}

error: pathspec 'soc_simulation/wave.do' did not match any file(s) known to git


dummy changes files

dummy changes files

clear
set more off

global path "/mnt/nfs6/wikipedia.proj/jmp/"
global rawosm "/mnt/nfs6/wikipedia.proj/jmp/rawdata/osm/"
global rawmaps "/mnt/nfs6/wikipedia.proj/jmp/rawdata/maps/"
global rawtrips "/mnt/nfs6/wikipedia.proj/jmp/rawdata/trips/"
global stash "/mnt/nfs6/wikipedia.proj/jmp/rawdata/stash/"
global myestimates "/mnt/nfs6/wikipedia.proj/jmp/jmpscripts/stata/estimates/"
global tables "/mnt/nfs6/wikipedia.proj/jmp/jmpscripts/stata/tables/"

cd `path'

********************************************
*************** datasets ********************
********************************************

insheet using ${rawosm}ne_final.csv, clear

error: pathspec 'stata/changes.do' did not match any file(s) known to git


Create clickbinder.do

Create clickbinder.do

error: pathspec 'clickbinder.do' did not match any file(s) known to git


Revert "asd"

Revert "asd"

This reverts commit f3e1af4bae5eb97d42c3f38c840051b334d7f1ce.

foreach fn in reghdfe hdfe {
	cd ../source
	copy `fn'.sthlp ../docs/`fn'.smcl, replace
	* local ufn = upper("`fn'")
	cd ../docs
	log2html `fn'.smcl, replace erase ///
		title("help for `fn'.ado") ///
		line(100)
}

error: pathspec 'build/create_html_help.do' did not match any file(s) known to git


small bug fixed

small bug fixed

fatal: unable to access 'https://github.com/dalek2point3/jmpscripts.git/': The requested URL returned error: 403


Expand macros

Expand macros

error: pathspec 'software/src/e2/dxforth/dxforth.asm.do' did not match any file(s) known to git


TST: Add SARIMAX coverage results Stata script

fatal: unable to access 'https://github.com/statsmodels/statsmodels.git/': The requested URL returned error: 403


Create attachlables.do

Create attachlables.do

error: pathspec 'Stata/attachlables.do' did not match any file(s) known to git