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
How to plot graph between p-value and quantiles in STATA?Here is the results of Quantile granger Causality in Table 8 and i want to plots the graph between p…
Generalized linear models interpretationsI have variable two dependent “total bone density “which measured in cm3 and “bone density percentag…
ineqdec0, missing values and error in loopHi everyone,
I am trying to export a large number of descriptive statistics on household income by c…
graph quadratic relationship with binary moderatorHey everybody,
I found the following graph in a paper and would like to recreate the exact same gra…
"better looking" bar?Dear All, I have data
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
…
Subscribe to:
Post Comments (Atom)
0 Response to Line break in coding returns me with error message after using Rcall package
Post a Comment