Displaying 20 results from an estimated 6000 matches similar to: "Comparing linear regression coefficients to a slope of 1"
2010 Aug 23
4
Draw a perpendicular line?
Hi,
I am trying to draw a perpendicular line from a point to two points.
Mathematically I know how to do it, but to program it, I encounter some
problem and hope can get help. Thanks.
I have points, A, B and C. I calculate the slope and intercept for line
drawn between A and B.
I am trying to check whether I can draw a perpendicular line from C to line
AB and get the x,y value for the point D
2008 May 16
1
Making slope coefficients ``relative to 0''.
I am interested in whether the slopes in a linear model are different
from 0.
I.e. I would like to obtain the slope estimates, and their standard
errors,
``relative to 0'' for each group, rather than relative to some baseline.
Explicitly I would like to write/represent the model as
y = a_i + b_i*x + E
i = 1, ..., K, where x is a continuous variate and i indexes groups
(levels of a
2010 Mar 22
2
problem with abline and lines
Dear R users,
I need to plot to perpendicular straight lines. However, although I set the coefficients
so that the lines are perpendicular, they do not look to be so in the plot. Here is a minimal working example:
plot(x=c(-1, 1), y=c(-1, 1)); abline(a=0, b=1/sqrt(2)); abline(a=0, b=-1/sqrt(2))
Please tell me if the same problem is valid by you. I am running R-2.10.1 on Linux.
Is there a way
2013 May 05
1
slope coefficient of a quadratic regression bootstrap
Hello,
I want to know if two quadratic regressions are significantly different.
I was advised to make the test using
step 1 bootstrapping both quadratic regressions and get their slope
coefficients.
(Let's call the slope coefficient *â*^1 and *â*^2)
step 2 use the slope difference *â*^1-*â*^2 and bootstrap the slope
coefficent
step 3 find out the sampling distribution above and
2012 Feb 20
1
slope in curves - how to compare?
Hello,
Is there any formula or way to compare slopes of different functions?
If we fit 2 functions in our data, and we have 2 slope parameters, how can we compare these slopes? Plotting y=5x and y=exp(5x) in which slope is equal to 5 in both of them.. doesn't seem that it makes sense to compare them. Maybe what I ask is basic statistics.. but you may be aware of some formula that could
2007 Nov 08
1
ggplot2 geom_abline slope not working?
I am learning ggplot2, and need your help.
When I try
> p <- ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point()
> p + geom_abline(slope=5)
(from http://had.co.nz/ggplot2/geom_abline.html)
the slope of the abline does not change, but this works:
> p + geom_abline(intercept=20)
In order to have slope work, I have to use
> p + geom_abline(aes(slope=5))
Is it a bug, or is there
2011 May 31
2
Forcing a negative slope in linear regression?
Dear forum members,
How can I force a negative slope in a linear regression even though the
slope might be positive?
I will need it for the purpose of determining the trend due reasons other
than biological because the biological (genetic) trend is not positive for
these data.
Thanks. Julia
Example of the data:
[1] 1.254 1.235 1.261 0.952 1.202 1.152 0.801 0.424 0.330 0.251 0.229
2013 Mar 13
1
Determining maximum hourly slope per day
Hello,
I have a challenge!
I have a large dataset with three columns, "date","temp", "location".
"date" is in the format %m/%d/%y %H:%M, with a "temp" recorded every 10
minutes. These temperatures of surface temperatures and so fluctuate during
the day, heating up and then cooling down, so the data is a series of peaks
and troughs. I would like
2007 Aug 14
4
Linear Regression with slope equals 0
Hi there, am trying to run a linear regression with a slope of 0.
I have a dataset as follows
t d
1 303
2 302
3 304
4 306
5 307
6 303
I would like to test the significance that these points would lie on a
horizontal straight line.
The standard regression lm(d~t) doesn't seem to allow the slope to be set.
Any help very welcome.
ed
2004 Oct 19
2
Slope of surface
Hi,
Is there a neat way of working out the slope of a flat surface in R?
Given (x,y,z) co-ordinates of the four corners of a square, is there a
function which will allow me to calculate the "mean" slope of the surface
in a given direction?
Thanks in advance..
Laura
Laura Quinn
Institute of Atmospheric Science
School of Earth and Environment
University of Leeds
Leeds
LS2 9JT
tel: +44
2006 Feb 04
2
srt --- slope text with function?
[resent, plus small addition; I do not understand why gmail sent a
weird charset.]
Dear R wizards:
I would love to write a general function that matches the slope of a plotted
line in an xy-plot at a particular x,y location. something like
x<- (1:10)^2; y<- 40:50;
plot( x,y, type="l", xlim=c(0,90) )
srt.at5 = text.at.current.plot.with.slope( x, y, 5);
text(
2002 Mar 10
1
multiple pairwise slope comparisons
Hello,
I have a linear model with different slopes for different treatment
groups. I need to pairwise compare the different slope estimates for
the different treatment groups. Is there a package that does pairwise
comparisons of slope coefficients, making the appropriate adjustments in
the P values?
Thanks,
John.
--
==========================================
John Janmaat
Department of
2009 Apr 03
2
Linear model, finding the slope
Hi
for some data I working on I am merely plotting time against temperature for
a variable named filmclip. So for example, I have volunteers who watched
various film clips and have used infared camera to monitor the temperature
on their face at every second of the clip.
The variable names I have used are Normalised ( for the temperature) and
Frame (for the time in seconds).
So I have fitted a
2003 Feb 04
2
testing slope
Hi all,
I try to test a linear slope using offset.
I have:
> m2 <- glm(Y~X*V)
> summary(m2)
Call:
glm(formula = Y ~ X * V)
Deviance Residuals:
Min 1Q Median 3Q Max
-2.01688 -0.56028 0.05224 0.53213 3.60216
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 1.3673 0.8476 1.613 0.119788
X
2007 Oct 15
2
Linear regression and slope from 1
Dear R-Users,
I am new to R, so please excuse the ignorance.
I have data:
x (2.14, 2.41, 1.09, 0.17, 8.18)
y (3.81, 5.13, 0.63, 0.75, 6.35)
I would like to use simple linear regression and test 2 things:
1) slope of line of best fit is statistically different from 1
2) y-intercept is statically different from 0
Could anyone provide me with the R terminology to do this?
Thanks so much,
Dan
2007 Nov 18
3
Linear Regression with lm Forcing the Slope to Equal 1
Is there a way to do a linear regression with lm (having one predictor
variable) and constrain the slope of the line to equal 1?
Tom
--
View this message in context: http://www.nabble.com/Linear-Regression-with-lm-Forcing-the-Slope-to-Equal-1-tf4828804.html#a13815432
Sent from the R help mailing list archive at Nabble.com.
2009 Jul 08
1
linear regression and testing the slope
Dear All,
First of all I would like to say I do not have much knowledge about this
subject, so most of you can find it really easy. I am doing a linear
regression and I want to test if the slope of the curve is 0. R gives the
summary statistics:
Call:
lm(formula = x ~ s)
Residuals:
Min 1Q Median 3Q Max
-0.025096 -0.020316 -0.001203 0.011658 0.044970
Coefficients:
2003 Sep 26
3
Std. errors of intercept and slope
Dear all,
I have the following output generated by linear regression. Since there is
only one regression intercept and one slope for one set of data, what is the
meaning of std. error for intercept and that of slope? Thanks in advance.
Sincerely,
Minghua
> data(thuesen)
> attach(thuesen)
> lm(short.velocity~blood.glucose)
Call:
lm(formula = short.velocity ~ blood.glucose)
2009 Oct 19
2
How to get slope estimates from a four parameter logistic with SSfpl?
Hi,
I was hoping to get some advice on how to derive estimates of slopes from four parameter logistic models fit with SSfpl.
I fit the model using:
model<-nls(temp~SSfpl(time,a,b,c,d))
summary(model)
I am interested in the values of the lower and upper asymptotes (parameters a and b), but also in the gradient of the line at the inflection point (c) which I assume tells me my rate of
2004 Jul 20
3
regression slope
Hello,
I'm a newcomer to R so please
forgive me if this is a silly question.
It's that I have a linear regression:
fm <- lm (x ~ y)
and I want to test whether the
slope of the regression is significantly
less than 1. How can I do this in R?
I'm also interested in comparing the
slopes of two regressions:
fm1 <- lm (x ~ y)
fm2 <- lm (a ~ b)
and asking if the slope of fm1 is