Hi folks,
Apologies for beginner question.
In R, it is possible to estimate nonlinear correlations between two variables (e.g. https://towardsdatascience.com/estim...r-62c6571cb1db).
Is there a similar function in Stata? I was a little unsure, but my thinking was:
Perhaps one way could be to use regression with some splines and extract R^2 (the squared correlation), and taking the square root (though that loses the sign, as I think does the approach in nlcor). The sign would be interpreted from the coefficients / plots? Does anyone have potential code to do this, or perhaps there is a simpler way?
Many thanks.
Patrick
Related Posts with Estimate nonlinear correlations between two variables
Determine number of unique values groupwiseHey community, I have grouped my observations by the variable companyid so that there are multiple …
Panel Var IRF standard deviation reportDear experts, I used pvar syntax by Abrigo and Love(2015) because of unbalanced panel data. Fore m…
Repeated measures mixed model specificationHello everyone, I think I am stuck on a specification problem and struggling to find a way out. - Pr…
Maximum Likelihood Estimation cannot find starting values in StataI am attempting to use Deal or No Deal Data to test for risk aversion parameters using Maximum Likel…
Regression analysis to detect herd behaviorDear all, I am new to this forum and also new to Stata. Therefore, I would like to apologize for an…
Subscribe to:
Post Comments (Atom)
0 Response to Estimate nonlinear correlations between two variables
Post a Comment