Displaying 4 results from an estimated 4 matches for "uscrim".
Did you mean:
uscrime
1999 Nov 08
1
can't read datasets from MASS library
Hello R users,
Sorry if this is a dumb question but I'm new to R under Windows (NT) and
I can't access datasets from V&R's MASS library :
> library(MASS)
> attach(UScrime)
Error: Object "UScrime" not found
> ls()
character(0)
but I get all the functions...Have I missed something ?
Any help would be appreciated. Thanks,
Mathieu
--
----------------------------------------------------------------------
Mathieu Ros - 13 rue b?vi?re - 38000 GRENOBLE -...
2002 Sep 11
1
Problem with leaps (long)
...d mods$Cp is full of NaNs.
Exactly the same file worked last year. What is more strange, if I
type or paste the commands interactively, I get plausible Cp values in
mods$Cp. It is only in BATCH that the thing goes stray.
---------- File demo10.R up to the error point ---------
library(MASS)
data(UScrime)
UScrime[1:3,]
attach(UScrime)
completo <- lm(y ~ . , data=UScrime)
summary(completo)
library(leaps)
X <- as.matrix(UScrime[,-16])
y <- UScrime[,16]
mods <- leaps(x=X,y=y,method="Cp")
postscript(file="demo10.eps",
horizon...
1999 Apr 23
1
basic question about lm summaries
I'm very new to R and I'm having trouble doing something that should be
very simple (so I'm probably missing something quite obvious). When I
run
> lm(data$CRIME~data$INCOME+data$HOUSING)
I get the correct coefficients. However, when I try to get anything
else out of this I get a message about a missing argument, e.g.:
>
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
...otors, muscle, newcomb,
nlschools, nottem, npk, npr1, oats, OME, painters, petrol, phones,
Pima.te, Pima.tr, Pima.tr2, quine, Rabbit, road, rock, rotifer, Rubber,
ships, shoes, shrimp, shuttle, Sitka, Sitka89, Skye, snails, SP500,
steam, stormer, survey, synth.te, synth.tr, topo, Traffic, UScereal,
UScrime, VA, waders, whiteside, wtloss
Error in library(MASS) : package/namespace load failed
Error in driver$runcode(drobj, chunk, chunkopts) :
Error in library(MASS) : package/namespace load failed
Error in buildVignettes(dir = ".") : Error in driver$runcode(drobj,
chunk, chunkopts) :...