I was wondering if there exists a function or command that counts the number of string variables in the dataset. I currently just found the c(k) that count the number of variables, but it is not possible to specify an option or "if" of any sort.
Related Posts with count the number of string variable
save regression results for margins plotingMy question is straightforward. Could Stata save regression results so that I do not have to re-run …
Fixed effect with 2 time pointsI would like to examine the effect of the COVID-19 outbreak on social isolation using panel study (d…
Calculating differences between adjacent elementsDear all, I wonder if there is any easy solution available in Mata for calculating the difference be…
creating a new var: Type mismatchHi I am going to classify firms into regions. I have a variable that specifies the firm's locations…
How to create a weighted average for multiple observations for a variable by borrower_id and yearBorroer_id Year Loan amount Loan maturity Loan interest 1 2011 101 60 8.5 1 2011 95 55 5.7 2 2011 85…
Subscribe to:
Post Comments (Atom)
0 Response to count the number of string variable
Post a Comment