Professional Documents
Culture Documents
SARVESH JP
2022504011
I M.Sc., Agricultural Economics
B A S I C G R A P H I C A L V I S U A L I Z AT I O N I N S TATA
logit depvar indepvars [if] [in] [, options]: Performs logistic regression analysis.
probit depvar indepvars [if] [in] [, options]: Performs probit regression analysis.
anova depvar indepvar [if] [in] [, options]: Conducts analysis of variance (ANOVA).
manova depvars = indepvars [if] [in] [, options]: Conducts multivariate analysis of variance (MANOVA).
tsset timevar: Defines the time variable for time series analysis.
tsline varname: Creates time series line plots.
==: Equal to
!=: Not equal to
>: Greater than
<: Less than
>=: Greater than or equal to
<=: Less than or equal to
&: Logical AND
|: Logical OR
~: Logical NOT
if condition: Used in many STATA commands to subset data based on logical conditions.
inlist(valuelist, varname): Checks if a value is in a list of values. Returns 1 if the value is found, 0 otherwise.
missing(varname): Checks if a value in a variable is missing (.) and returns 1 if it is, 0 otherwise.
egen allvar = all(condition, varlist): Checks if all values in varlist meet the specified condition and returns 1
if true, 0 otherwise.
• egen countvar = count(condition, varlist): Counts the number of values in varlist that meet the specified
condition.
• egen anyvar = any(condition, varlist):
egen allvar = all(condition, varlist): Checks if all values in varlist meet the specified
condition and returns 1 if true, 0 otherwise.
egen countvar = count(condition, varlist): Counts the number of values in varlist that
meet the specified condition.
egen inlistvar = inlist(value, varlist): Checks if a value is in a list of values. Returns 1 if
the value is found, 0 otherwise.
egen nvalsvar = nvals(varlist): Counts the number of distinct values in a list of variables.
egen seqvar = seq(), from(start) to(end) [by(increment)]: Generates a sequence of
numbers.
• https://blog.stata.com/
• https://www.stata-journal.com/subscription/
• https://www.stata.com/bookstore/
THANKS FOR YOUR ATTENTION