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 !
Related Posts with Line break in coding returns me with error message after using Rcall package
Shaded area xtline graphDear Statalisters, Currently I am working on a panel dataset where my probit model predicts either …
How to find data points lying above regression line within distance less than max[1SE, 1mm]? Hello Statalists, I have data points (units in mm) and have performed regression on it. Now I need…
Efficient construction of loop commands involving strmatch() when numlist values have leading zeroesHi All, running Stata 15.1 I am attempting to use a list of two-digit numeric prefixes to tag obser…
Likert normalizationHi - I'm helping my son with his science fair project. He did placebo taste testing where he has so…
Benchmarking Stata to Test Speed Across Computers and VersionsAfter helping my son upgrade his gaming machine, I decided it was time to upgrade my 8-year old desk…
Subscribe to:
Post Comments (Atom)
0 Response to Line break in coding returns me with error message after using Rcall package
Post a Comment