Code:
rcall: out1 <- att_gt(yname="ln_incwage", tname="year", gname="treat_1", xformla=~male + age + age2 + age3 + age4 + black + asian + hispanic + lths + hsdegree + somecollege , data=statadata, est_method = "dr", control_group = "never_treated", print_details = FALSE, clustervars ="statefip", panel = FALSE) # wh)
With the help of Rcall package I can run the Callaway and Sant'Anna DiD comamnd from stata using the above method, the problem is from the part of the
data=statadata, est_method =
where the line breaks and it comes with the error information - command data is unrecognized r(199);
This is not even a normal error , but since the line breaks , and I'm using stata as R that's why the error is showing.
there might be an easy way to get around this problem , but since I'm new to this rcall package , I'm not quite sure how to avoid the problem when a new line starts .
Could anyone kindly give me a lead on this ?
Thanks for your time !
0 Response to Line break in coding returns me with error message after using Rcall package
Post a Comment