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
median survival time using stciDear Users, I would like to estimate median survival time for a survival model in Stata15. My file …
How to Move Data Up One Column (by id)I want to make pre/post column using id and standard column. pre column is the result of raising th…
asroprobit with incomplete or partial rankingMy data consists of individuals presented with 10 alternatives and they mention their first and seco…
Probit model, collinearity from factor analysis dataHello everybody, I used predicted variables from PCA for an EFA and want to implement my findings (…
Categorical Variable Types: Ordinal Independent Variable (as opposed to Nominal Independent Variable)I am new to Stata. One of the packages I have prior experience with is SPSS. In SPSS, one can defi…
Subscribe to:
Post Comments (Atom)
0 Response to Line break in coding returns me with error message after using Rcall package
Post a Comment