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
mnsp command to execute R in StataHello, I'd like to estimate propensity scores for multiple treatments and try to use the mnps comma…
Creating Fixed effectHey, i have a panel data, i need to add a Race_grade fixed effect and i have two separate variables …
Using asdoc to export two-sample t-test by groups and other summary statisticsHi, I would like to export summary statistics (two sample t-test of the difference of the two group…
Multilevel modeling- testing further the cross-level interaction terms after mnbregHi, I I highly appreciate any help in probing the significant cross-level interaction terms in this …
Create a continuous variable for blood pressure using two variablesDear List, I wonder if any of you know how to make a continuous blood pressure variable from two va…
Subscribe to:
Post Comments (Atom)
0 Response to Line break in coding returns me with error message after using Rcall package
Post a Comment