Hi all,
I am wondering if anyone has any ideas on how I can compare each observation from one variable to every observation in another variable. Essentially, imagine you have 10 observations in one variable A, and then another 1000 in another variable B. For each observation in variable A, I would like to compare it to every value in variable B. In reality, I have over 300,000 observations for each variable, so the computation becomes cumbersome quickly.
I have currently figured out the problem in Python, but it takes over 2 minutes to run through 300 observations (or roughly 10ish hours for the whole dataset). The algorithm is straightforward enough in Python - fix variable 1, compare to every observation in variable 2; fix variable 2, compare to every observation in variable 2, etc., etc... Is there anything in Stata a bit more sophisticated?
I am currently using StataIC 15 on MacOS.
Related Posts with Comparing each observation from one variable to few hundred thousand in another
Estimating FE model with -reg or -xtregDear, I am estimating a panel data fixed effects model (both year and industry). I am aware I can e…
adding summary weight in metabolic scoreHi, I am trying to generate a metabolic syndrome score for the children aged 11 to 12 years using PC…
Validity of a model for a data set using prediction.Hi I have a question whether we can assess the validity of a model for a data set using prediction. …
Propensity Score Matching: How to run analysis using a certain block?Hello, I believe this is a very newbie question but would be greatly appreciated if anyone can help …
Problem: no observations r(2000)Hello i'm making a dynamic panel and i want to estimate a model with pmg, mg and dfe. When I do th…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing each observation from one variable to few hundred thousand in another
Post a Comment