Here's an example I constructed that appears to accomplish what you're trying to do:
sysuse auto, clear
putdocx begin
putdocx paragraph
tab2docx rep78
putdocx paragraph
tab2docx foreign
putdocx save test2, replace
Here's an example I constructed that appears to accomplish what you're trying to do:
sysuse auto, clear
putdocx begin
putdocx paragraph
tab2docx rep78
putdocx paragraph
tab2docx foreign
putdocx save test2, replace
I have the same error
Ok ill try at Work Tomorrow
Are these errors still happening? I'm unable to produce them on my end running the command you provided.
Is it possible to use VAR if both your dependent and independent variables are binary. Let's say the binary variable is 0 if there was no rain and 1 if there was rain.
I am still having the same issue. I get an invalid 'Support' everytime I try to run the nfl2stata scrape command.
Thank you Chris!! It works (with no weights, unfortunately....)
Try updating the command with net install http://www.stata.com/users/..., replace. There were a few changes that were made near the beginning of the season to accommodate some NFL website changes.
Thank you for your detailed explanation and useful references. However I am not sure this is a good example? I just run regular linear regression (i.e. using "regress") with no2_class and all the control variables. The result for no2_class is: coef=2.412, t=4.29. The results are similar to what was shown in the post and there is little benefit of lasso. I don't think one needs to do variable selection at all for this case. Austin and Steyerberg (2015, http://dx.doi.org/10.1016/j... ) shows that for linear regression two observations per variable (there is more than 4 for this example) is quite sufficient.
Hi, can you tell me where stata store the marginal effects? I try to compare estimations by two samples. thanks
Is this error in Stata, or a stopbox from the ODBC driver?
In Stata 15/16, the default behavior is to keep a cell's format. You must use the option overwritefmt to overwrite a cell's formatting.
Can you post the error message you receive?
If you have Stata 15, you should update tab2xl to fix this problem.
net install http://www.stata.com/users/kcrow/tab2xl, replace
Can you post the error message you receive?
Frank Harrell discusses many problems with split sample model validation:
https://www.fharrell.com/po...
Scott Millis
For those who want to create smoother videos, I wrote a small guide on that here: https://statatricks.wordpre...
It uses the butterflow program to predict intermediate frames, which makes playback look a lot nicer when you cannot manually make the changes very small. In some circumstances it also just saves some programming time.
Thank you very much for this post, really useful !!!
Hello,
I have had the same problem as Rune with two way tabulations. I have tried running the command that Chris suggested but cannot get two way tables to work. I also noticed in the help for the tab2docx command it says it will "perform a one-way tabulation replica" which makes me think a two way tabulation cant be done?
Any advice would be appreciated thank you :)
Hello everyone,
This code generates an excel table for a two-way tabulation with rows added to display the percentages:
sysuse auto, clear
tab2xl q_ccterm precinct using "2_Part_2_Tables_currquest.xlsx", col(2) row(2) column percentage
Is there a way to have the percentages be added in additional columns, rather than in additional rows? Also, is it possible to limit the percentages being exported, so that the relative frequencies displayed are the ones referring to only the column or only the row (but not both)?
Thank you!