Displaying 14 results from an estimated 14 matches for "lm0".
Did you mean:
lm
2006 Mar 05
2
what is scale function? Is it for variable transformation?
HOwdy
I read R books about scale function for variable transformation.
Acoording to this book
scale function leads me to better regression results. Or am I worng?
I hope somebody tell me about a scale function?
Is it for variable transformation?
--
Kum-Hoe Hwang, Phone : 82-31-250-3516Email : phdhwang@gmail.com
[[alternative HTML version deleted]]
2005 Aug 04
0
add1.lm and add1.glm not handling weights and offsets properly (PR#8049)
I am using R 2.1.1 under Mac OS 10.3.9.
Two related problems (see notes 1. and 2. below) are illustrated by
results of the following:
y <- rnorm(10)
x <- z <- 1:10
is.na(x[9]) <- TRUE
lm0 <- lm(y ~ 1)
lm1 <- lm(y ~ 1, weights = rep(1, 10))
add1(lm0, scope = ~ x) ## works ok
add1(lm1, scope = ~ x) ## error
lm2 <- lm(y ~ 1, offset = 1:10)
add1(lm0, scope = ~ z) ## works ok
add1(lm2, scope = ~ z) ## gives incorrect results (ignores the offset)
glm0 <- glm(y ~ 1)
glm...
2005 Aug 05
0
(PR#8049) add1.lm and add1.glm not handling weights and
...On Thu, 4 Aug 2005 d.firth at warwick.ac.uk wrote:
> I am using R 2.1.1 under Mac OS 10.3.9.
>
> Two related problems (see notes 1. and 2. below) are illustrated by
> results of the following:
>
> y <- rnorm(10)
> x <- z <- 1:10
> is.na(x[9]) <- TRUE
>
> lm0 <- lm(y ~ 1)
> lm1 <- lm(y ~ 1, weights = rep(1, 10))
>
> add1(lm0, scope = ~ x) ## works ok
> add1(lm1, scope = ~ x) ## error
>
> lm2 <- lm(y ~ 1, offset = 1:10)
>
> add1(lm0, scope = ~ z) ## works ok
> add1(lm2, scope = ~ z) ## gives incorrect results (igno...
2000 Aug 29
1
Newbie question: Linear regression with error bars.
Hello guys,
I am a total newbie on R, having downloaded it, read the documentation and
started playing with it right now.
My general question is what 'lr' model can be used for doing a linear
regression on points that have a variance associated with them (ie. Monte
Carlo simulation results).
Actually my Data sets look like:
Timestep Energy Variance_of_the_Energy
0.0005 -14.876840
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
2011 Jul 28
0
R: Re: Problem with anova.lmRob() "robust" package
...explanation of these different results?
>>
>> Since you didn't post your results and since your complaint was that they
>> are "the same", it's hard to know what you are talking about.
>
>I think the question is why
>
>lm1 <- lm(y ~ factor(x))
>lm0 <- lm(y ~ 1)
>anova(lm1)
>anova(lm0, lm1)
>
>gives the same result, but
>
>lmR<-lmRob(y~factor(x))
>lmR0<-lmRob(y~1)
>anova(lmR)
>anova(lmR,lmR0)
>
>does not.
>
>I don't know the answer, but I think it is an interesting question.
>
>Best,
&g...
2004 Sep 29
1
Problem with _new_ if class "lm" in object representation.
Hi!
Consider this code.
setClass("Ctest"
,representation(
test="character"
,bla="character"
,mod="lm"
)
)
new("Ctest",test="bla") #This produces an error.
#Error in validObject(.Object) : Invalid "Ctest" object: Invalid object for slot "mod" in class "Ctest": got class
2005 Jun 01
1
Bootstrap direction
Hi all,
I am trying to bootstrap a small data set into 1000 "pseudodatasets" and
then run an ANOVA on each one. Can anyone provide guidance on how I could
do this?
Thank you.
-Dan Janes
************************************************
Dan Janes, Ph.D.
Harvard University/OEB
26 Oxford St.
Cambridge, MA 02138
Office: 617-496-2375
Fax: 617-495-5667
Email: djanes at oeb.harvard.edu
2005 Jun 13
0
Pseudodataset text file
...ataset 1000 times. I received
code that bootstrapped my dataset and ran an ANOVA on each pseudodataset,
producing a histogram of F-values. Here is the code I received that
produces this F-histogram.
X <- data.frame(b=rnorm(2162),c =factor(rep(1:47,each=46)))
## linear fit with true values
lm0 <- lm(b~c,data=X)
Fvals <- numeric(1000)
for (i in 1:1000) {
X.boot <- X[sample(1:nrow(X),replace=TRUE),]
Fvals[i] <- anova(lm(b~c,data=X.boot))$"F value"[1]
}
hist(Fvals)
I am grateful for the assistance but the code does not provide what I
need. I need the 1000 ps...
2003 Oct 20
1
"NULL dest in safe_strcpy"
I'm running Samba 3.0.0 and seeing a lot of
Oct 20 10:02:25 littleboy smbd[2062]: [2003/10/20 10:02:25, 0]
lib/util_str.c:safe_strcpy_fn(577)
Oct 20 10:02:25 littleboy smbd[2062]: ERROR: NULL dest in safe_strcpy
messages. Most things (except the problem I posted earlier) seem to
work perfectly.
2004 Jul 03
1
samba+obsd+subnets
...ckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627THF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask c860 net...
2008 Apr 11
4
Format regression result summary
Hello to the whole group.
I am a newbie to R, but I got my way through and think it is a lot easier to
handle than other software packages (far less clicks necessary).
However, I have a problem with respect to the summary of regression results.
The summary function gives sth like:
Residuals:
Min 1Q Median 3Q Max
-0.46743 -0.09772 0.01810 0.11175 0.42252
2002 Sep 14
0
p.s. regarding stripchart missing-data report (PR#2019)
...in numbers versions compared to trust in words versions.
#Notice that this simply tests the difference. Of course, this
#totally ignores cancer type. This works, at p<.05. But that is
#still important because it rejects the view that the effect goes
#the other way.
verbal <- probtype==0
lm0 <- lm(trust ~ subj)
lm1 <- lm(trust ~ subj+cancer)
lm2 <- lm(trust ~ subj+cancer+verbal)
#Then I compared successive models:
anova(lm0,lm1)
anova(lm1,lm2)
#The first comparison shows that cancer matters. The second shows
#that verbal is still significant. The result is slightly
#differe...
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...=30
z;EZdBAH8!=&&2UIPwxH4TYDEj*5jXNKKpL0-8d_L*6GQ=HQ)7Gn~2o%&PT_{>oXdw
zr1FZRi?;r4(wN7JCvX0F%bB-c|ID_nf1BL&(JpATmTse6*<hoMLLshVkFY_^Smu?d
z>#}wyE8cB!Xz)8j8g1)WHl#0uY at XO<M*dTeFfrij>XLTWo!FR#J9obR{QBFk0+tM{
zcV_3`|0u8q40^S$?&m*$xQ at ae&R<?H3^L`$*T#+b?`|z$TlM0Gihh0Go^(r5UgDAa
z at 7>(3WxjEE!gUpgCJpwfFaA1r+p~L at s=)CdnBL95?;pQjlsA0b;BGAk-ukTkR`2^C
zTO&rYUSgdb`DXRZ5z8KVsS@?DX6oPv*w}V+s%K6Z)6G9F{@C45Ju_kJ%*myXc4^<P
z^{oZs!zvix+)nh^h?k<jdVEc(^w8d+ZtBW=_dmX7G;$iQ|9ttLC+6L1BGDrqUhbQ>
zbIxCOziYJKOO-P2UhAQuT~H?&a&>iAUo9q|HTTa9&koP...