Hello Stata programmers,
I am programing a routine, where I want the default command to compute a non-normalized index, and let two possibilities to compute (two different) normalized indexes.
so here's the syntax
Where string should idicate the normalization method chosen
Where I face a problem is that I want that if string is missing, but the normalize option written, add a default choice (e.g, method one), since the use of method one should be more frequent
To be exhaustive I want :
to run the normal command (non normalized)
to run the same normalized command method
And
to run the second normalized command
I'd like to find a command that indicates whether the normalized option is on or not (and not what's in its parenthesis), because
indicates that nothing is in the parenthesis, but doesn't indicates whether the normalized option is on or not (as it would be for options without a (string), thus indicates
Sorry if this isn't very clear,
Best,
Charlie
I am programing a routine, where I want the default command to compute a non-normalized index, and let two possibilities to compute (two different) normalized indexes.
so here's the syntax
Code:
program cmd syntax [, Normalize(string) *]
Where I face a problem is that I want that if string is missing, but the normalize option written, add a default choice (e.g, method one), since the use of method one should be more frequent
To be exhaustive I want :
Code:
cmd
Code:
cmd, n cmd,n(one)
And
Code:
cmd, n(two)
I'd like to find a command that indicates whether the normalized option is on or not (and not what's in its parenthesis), because
Code:
if "`normalize'"==""
Sorry if this isn't very clear,
Best,
Charlie
Comment