Hi everyone,
I am trying to reconcile two double entry datasets, for which I am using cfout and readreplace commands.
In my datasets, variable "uniqueid" uniquely identifies the observations.
The cfout command works out just fine and I am able to outsheet a csv format file which contains the difference in variable values for both the datasets.
I then manually enter the correct values in a different csv file called "corrected.csv" containing variables "uniqueid" "question" (having the variable names which differ in both datasets" and "correctvalues"
However, when I use the readreplace command using:
I get the following error:
I do not understand why this is happening, because I do have variable "uniqueid" in the replacement file which is the corrected.csv and also in the dataset in the memory "form1"
Would somebody have an idea as to what is going on?
I have even tried the readreplace command with import(case) option.
Thanks!
I am trying to reconcile two double entry datasets, for which I am using cfout and readreplace commands.
In my datasets, variable "uniqueid" uniquely identifies the observations.
The cfout command works out just fine and I am able to outsheet a csv format file which contains the difference in variable values for both the datasets.
I then manually enter the correct values in a different csv file called "corrected.csv" containing variables "uniqueid" "question" (having the variable names which differ in both datasets" and "correctvalues"
However, when I use the readreplace command using:
Code:
use "form1.dta" readreplace using corrected.csv, id(uniqueid) variable(question) value(correctvalue)
Code:
variable uniqueid_class not found in replacements file (error in option id())
Would somebody have an idea as to what is going on?
I have even tried the readreplace command with import(case) option.
Thanks!
Comment