@@ -972,6 +972,153 @@ Adj. R2 0.007 0.860 0.861 0.622
972
972
----------------------------------------------------------------------
973
973
```
974
974
975
+ ## Adding an extra row between coefficients
976
+
977
+ Using the ` extra_space ` option allows for a default more like the Stargazer R package. This option adds an extra row after the below statistic and before the next coefficient (or simply between coefficients if there is no below statistic or the below statistic is on the same line as the coefficient).
978
+
979
+ ``` jldoctest
980
+ regtable(rr1,rr2,rr3,rr4; extra_space = true)
981
+
982
+ # output
983
+
984
+
985
+ ----------------------------------------------------------------------
986
+ SepalLength SepalWidth
987
+ ------------------------------ ----------
988
+ (1) (2) (3) (4)
989
+ ----------------------------------------------------------------------
990
+ (Intercept) 6.526***
991
+ (0.479)
992
+
993
+ SepalWidth -0.223 0.432*** 0.516***
994
+ (0.155) (0.081) (0.104)
995
+
996
+ PetalLength 0.776*** 0.723*** -0.188*
997
+ (0.064) (0.129) (0.083)
998
+
999
+ PetalWidth -0.625 0.626***
1000
+ (0.354) (0.123)
1001
+
1002
+ PetalLength & PetalWidth 0.066
1003
+ (0.067)
1004
+
1005
+ SepalLength 0.378***
1006
+ (0.066)
1007
+ ----------------------------------------------------------------------
1008
+ Species Fixed Effects Yes Yes Yes
1009
+ isSmall Fixed Effects Yes
1010
+ ----------------------------------------------------------------------
1011
+ N 150 150 150 150
1012
+ R2 0.014 0.863 0.868 0.635
1013
+ Within-R2 0.642 0.598 0.391
1014
+ ----------------------------------------------------------------------
1015
+ ```
1016
+
1017
+ ``` jldoctest
1018
+ regtable(rr1,rr2,rr3,rr4; below_statistic = nothing, extra_space=true)
1019
+
1020
+ # output
1021
+
1022
+
1023
+ ----------------------------------------------------------------------
1024
+ SepalLength SepalWidth
1025
+ ------------------------------ ----------
1026
+ (1) (2) (3) (4)
1027
+ ----------------------------------------------------------------------
1028
+ (Intercept) 6.526***
1029
+
1030
+ SepalWidth -0.223 0.432*** 0.516***
1031
+
1032
+ PetalLength 0.776*** 0.723*** -0.188*
1033
+
1034
+ PetalWidth -0.625 0.626***
1035
+
1036
+ PetalLength & PetalWidth 0.066
1037
+
1038
+ SepalLength 0.378***
1039
+ ----------------------------------------------------------------------
1040
+ Species Fixed Effects Yes Yes Yes
1041
+ isSmall Fixed Effects Yes
1042
+ ----------------------------------------------------------------------
1043
+ N 150 150 150 150
1044
+ R2 0.014 0.863 0.868 0.635
1045
+ Within-R2 0.642 0.598 0.391
1046
+ ----------------------------------------------------------------------
1047
+ ```
1048
+
1049
+ ``` jldoctest
1050
+ regtable(rr1,rr2,rr3,rr4; stat_below=false, extra_space=true)
1051
+
1052
+ # output
1053
+
1054
+
1055
+ ----------------------------------------------------------------------------------------------------
1056
+ SepalLength SepalWidth
1057
+ ------------------------------------------------------ ----------------
1058
+ (1) (2) (3) (4)
1059
+ ----------------------------------------------------------------------------------------------------
1060
+ (Intercept) 6.526*** (0.479)
1061
+
1062
+ SepalWidth -0.223 (0.155) 0.432*** (0.081) 0.516*** (0.104)
1063
+
1064
+ PetalLength 0.776*** (0.064) 0.723*** (0.129) -0.188* (0.083)
1065
+
1066
+ PetalWidth -0.625 (0.354) 0.626*** (0.123)
1067
+
1068
+ PetalLength & PetalWidth 0.066 (0.067)
1069
+
1070
+ SepalLength 0.378*** (0.066)
1071
+ ----------------------------------------------------------------------------------------------------
1072
+ Species Fixed Effects Yes Yes Yes
1073
+ isSmall Fixed Effects Yes
1074
+ ----------------------------------------------------------------------------------------------------
1075
+ N 150 150 150 150
1076
+ R2 0.014 0.863 0.868 0.635
1077
+ Within-R2 0.642 0.598 0.391
1078
+ ----------------------------------------------------------------------------------------------------
1079
+ ```
1080
+
1081
+ ``` jldoctest
1082
+
1083
+ regtable(rr1,rr2,rr3,rr4; render = LatexTable(), extra_space=true)
1084
+
1085
+ # output
1086
+
1087
+ \begin{tabular}{lrrrr}
1088
+ \toprule
1089
+ & \multicolumn{3}{c}{SepalLength} & \multicolumn{1}{c}{SepalWidth} \\
1090
+ \cmidrule(lr){2-4} \cmidrule(lr){5-5}
1091
+ & (1) & (2) & (3) & (4) \\
1092
+ \midrule
1093
+ (Intercept) & 6.526*** & & & \\
1094
+ & (0.479) & & & \\
1095
+ & & & & \\
1096
+ SepalWidth & -0.223 & 0.432*** & 0.516*** & \\
1097
+ & (0.155) & (0.081) & (0.104) & \\
1098
+ & & & & \\
1099
+ PetalLength & & 0.776*** & 0.723*** & -0.188* \\
1100
+ & & (0.064) & (0.129) & (0.083) \\
1101
+ & & & & \\
1102
+ PetalWidth & & & -0.625 & 0.626*** \\
1103
+ & & & (0.354) & (0.123) \\
1104
+ & & & & \\
1105
+ PetalLength $\times$ PetalWidth & & & 0.066 & \\
1106
+ & & & (0.067) & \\
1107
+ & & & & \\
1108
+ SepalLength & & & & 0.378*** \\
1109
+ & & & & (0.066) \\
1110
+ \midrule
1111
+ Species Fixed Effects & & Yes & Yes & Yes \\
1112
+ isSmall Fixed Effects & & & Yes & \\
1113
+ \midrule
1114
+ $N$ & 150 & 150 & 150 & 150 \\
1115
+ $R^2$ & 0.014 & 0.863 & 0.868 & 0.635 \\
1116
+ Within-$R^2$ & & 0.642 & 0.598 & 0.391 \\
1117
+ \bottomrule
1118
+ \end{tabular}
1119
+ ```
1120
+
1121
+
975
1122
## All Available Statistics
976
1123
977
1124
``` jldoctest
0 commit comments