help for oneclick

Title

oneclick —— Helps you to quickly screen for control variables that keep
the explanatory variables at a certain level of significance.

Syntax

oneclick y controls,
method:(regression)
pvalue:(p-value)
fixvar:(x and other FE)
[
options:
zvalue:
]

If you're using the reghdfe command, put the fixed effects into the absorb as
much as possible to speed up the calculations.

Description

oneclick By entering your control variables, the oneclick command
helps you to select all true subsets of the control variables and add them to
the regression in turn, and at the end only the combinations at the level of
significance you are satisfied with are listed. I constructed the subset
filtering method from scratch based on the bitmap algorithm, which is faster
than tuples.

Requirements

varlist specifies the dependent variable and control variables to be screened.
If you type oneclick a b c, then a is your dependent variable, b and c are
your control variables.

method(regression) specifies the estimator you want to use.

pvalue(real) specifies the level of significance.

fixvar(varlist) specifies the inddependent variable and other
variables that you want to fix in regression. If you type a b c, then a is you
inddependent variable, b and c are the integral control variables.

options(varname) specifies the additional options in regression.
If you use reghdfe, you can add o(absorb(#)).

zvalue) specifies whether regression is judged by z-values.If you use
a regression like logit, you must add the z option

Results

After running oneclick, you will see a dta file named subset in the current
working directory. Among them, the variable subset represents the control variable
that can make the explanatory variable significant, the variable positive takes
1 to indicate positive significance, and takes 0 to indicate negative significance.

Examples

*- Selecting the combination from mpg and rep78 that will make weight
significant at the 10% level in OLS.

.
`"sysuse auto.dta, clear"'

.
`"oneclick price mpg rep78, fix(weight) p(0.1) m(reg)"'

Author

Shutter Zor(左祥太)

School of Accountancy, Wuhan Textile University.

E-mail: Shutter_Z@outlook.com.

Acknowledgments

Thank you to Professor Yujun,Lian (arlionn) for his programming syntax guidance and
Professor Christopher F. Baum for his careful bug checking.

Thanks to Bilibili users for their suggestions on the initial construction of
this project.

Thanks to my learning ability.