[R] Model II regression

David L Carlson dcarlson at tamu.edu
Mon Jun 27 19:01:00 CEST 2011


Look at package smatr. It fits RMA (called here standardized major axis) regression, plots the line, and provides confidence limits. 

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352



-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of JEAN-LOUIS HEMPTINNE
Sent: Friday, June 24, 2011 10:18 AM
To: r-help at r-project.org
Subject: [R] Model II regression

Hello,
I am using function lmodel2 to calculate RMA regression between
life-history traits in ladybirds beetles. It works well but I am not able
to plot an RMA regression line on the scatterplot of my data. I am of
course unable to plot the confidence intervals. For ordinary least square
regression abline(lm(x~y))works well but for RMA regression,
abline(lmodel2(x~y))does not do it. 
If somebody knows how to do it, it would be a great relief !!
Best wishes,
JL

Jean-Louis Hemptinne
PR Ecologie et Didactique de l'Ecologie
Université de Toulouse - Ecole nationale de Formation agronomique
UMR CNRS 5174 Evolution et Diversité biologique
BP 22687
F-31326 Castanet-Tolosan Cedex

Tel : (+33)0561753295 
Fax : (+33)0561750309

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list