Hey everyone,
I am trying to write a program that will do logistics on different variables. Final syntax for the user should look like this:
(Command) var1 var2 var3 var4, outcome(var5)
my program should run logistics
var5 var1
var5 var2
var5 var3
var5 var4
(and do more, I am just getting started!)
I wrote
program define (program’s name)
syntax varlist [if], yvar(varname)
Foreach v of varlist ‘varlist’ {
quietly logistics ‘yvar’ ‘varlist’
}
does it make sense? How do I incorporate ‘outcome’ in the final user syntax in my program?
Related Posts with Program a logistics command
AREG - Different resultsDear all, I just launch several estimations using areg command on stata. I'm surprise since I launc…
Question regarding interpretation of interaction effect in logistic regressionHello, I was wondering if it would be possible to get some feedback on my interpretation of interac…
Stata equivalent to SPSSHello friends I hope you are well. I saw this video on youtube on how to normalize your data on SPS…
margins after ereturn post with -npregress-I am running a nonparametric kernel regression where the dependent variable is transformed using the…
Centering variables in panel dataHello everyone, I have an unbalanced panel data at subnational level based on survey years which d…
Subscribe to:
Post Comments (Atom)
0 Response to Program a logistics command
Post a Comment