Dear all,
I get an error when I run the command --tuples--(SSC).
sysuse auto,clear
global m mpg rep78 weight length turn trunk foreign
tuples $m ,conditionals(1&2) max(5) asis
dis `ntuples'
Traceback (most recent call last):
File "/Applications/Stata 17/ado/plus/py/st_tuples_py.py", line 33, in <module
> >
exec("tuplelist = list(filter(lambda tupl: " + py_condits + ", tuplelist))")
File "<string>", line 1
tuplelist = list(filter(lambda tupl: ("mpg" in tupl and "rep"foreign" in tup
> l8" in tupl), tuplelist))
^
SyntaxError: invalid syntax
failed to execute the specified Python script file
r(7103);
end of do-file
r(7103);
Any help will be appreciated.
Best
Raymond
Related Posts with Question about the command --tuples--
building groupsDear All, According to Code: . webuse grunfeld, clear . sum invest Variable | Obs …
Creating individual-level variables representing the characteristics of co-resident persons (e.g. age of mother)Hello. I am using CPS data and am trying to transform the data using the household id number, the li…
Cutting all but the first two digits of a numeric variable of varying lengthHello, I have a numeric variable with values of varying lengths. I would like to cut all but the fi…
error merge m:1 no? unique numbers in using dataHi there, I am trying to merge 2 datasets with m:1, on keyvar ID. i am getting an error that "variab…
Pairwise correlationsHi, I am a very new user in Stata and need help with obtaining only relevant correlation coefficien…
Subscribe to:
Post Comments (Atom)
0 Response to Question about the command --tuples--
Post a Comment