Skip to main content
added 281 characters in body
Source Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this site.

Finally, one example, showing conditional correlations, from the post Can I analyze or model a conditional correlation?

a conditional correlations coplot

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this site.

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this site.

Finally, one example, showing conditional correlations, from the post Can I analyze or model a conditional correlation?

a conditional correlations coplot

added 52 characters in body
Source Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this sitesearch this site.

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this site.

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this site.

Source Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663

As said in comments, one way would be to fit a regression model, and then plot predictions with some covariates hold at fixed values, and the one used on the x-axis with its observed values. The Rpackage effects (on CRAN) can be useful.

Another idea, especially with three variables (but combined with the above ideas could be used with more) is conditioning plots, made in R with the function coplot. On this site some examples can be found here, used for investigating interactions, another example with R dataset swiss, and used for investigating conditional correlations, or search this site.