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
How to perform PSM without replacement using teffects psmach commandDear all, I want to perform 1:1 nearest neighbourhood PSM wihtout replacement, and get AI variance. …
List of long string varsI am simply looking to get a list of all the different values of a string variable, but some of them…
Predicted values with a categorical x continuous interaction in a multilevel model with multiple imputationDear all, I am working with cross sectional survey data from 22 countries with 16965 observations. …
is there package/codes for Spatial panel vector auto-regressive (VAR) model OR Spatial panel vector error correction model (VECM) in stata?I am looking for codes/Package available for Spatial panel VAR model or Spatial panel VECM model in …
IVREGHDFE: Collinearity with fixed effectsMy project is to analyze the effect of the interest rate on the financial institution's lending beha…
Subscribe to:
Post Comments (Atom)
0 Response to Estimate nonlinear correlations between two variables
Post a Comment