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
Issue with cross-sectional regression using rangestatI'm running on this code below to do regression on stock data by combination of industry and year. …
Calculate gini coefficient panel data using income groupsI have panel data for some time periods of several municipalities, I also have data of the amount of…
Specifying state-specific linear time trends and potential issues of collinearityHi everyone, I am running a two way fixed effects regression with state and year fixed effects. I w…
Computing Between-Group Gini CoefficientHi there, I am currently attempting to compute a Gini Coefficient that represents average house pri…
graph bars that stack positive and negative valuesHi everyone, I'm trying to create a graphic with horizonal bars in which I could stack positive an…
Subscribe to:
Post Comments (Atom)
0 Response to Estimate nonlinear correlations between two variables
Post a Comment