Hi everyone,
I am hoping someone can assist me with an issue I am having with nearmrg. I have been working on this for 2 weeks and for some reason I keep getting an error message. I have two data files, but with and ID variable. However, the master file has a date when the individuals were referred and the using data file has a date when individuals are assessed. I am using the below code to merge the data files and I keep getting the same error message. NOTE: I have deleted duplicates in the master date file to ensure there are no duplicates on ID and referral date.

I am using the following code:
nearmrg djjid using "E:\REF_FILE.dta", nearvar(reference_date) genmatch(pactref_date) limit(120) lower

When I use the above code I get the following message:
invalid 'Warren'
r(198);

I have no idea what this means. Any help the forum can provide is greatly appreciated.

PW