Displaying 20 results from an estimated 3000 matches similar to: "MASS data sets"
2001 May 22
2
MASS data sets
I'm running R 1.2.2 under windows 98 on a Pentium 133 laptop.
I can't seem to retrieve the package MASS data sets:
> library(MASS)
> data(wtloss)
Warning message:
Data set `wtloss' not found in: data(wtloss)
> data(abbey)
Warning message:
Data set `abbey' not found in: data(abbey)
And yet all the .rda files for the MASS datasets are in
D:\Program
2001 Mar 07
1
Windows: updating to R 1.2.2
Forgive me, but while I find the documentation for initially installing R
to be clear, I'm not so happy about updating.
I want to update from R 1.2.1 to R 1.2.2 (mainly so I can get the debugged
version of pictex() ).
Now I have downloaded the base zip files, say to Z:\Program Files and my
existing installation of R 1.2.1 is sitting in
Z:\Program Files\rw1021.
Running rwinst.exe I need to
2008 Jul 31
1
nls weights warning message
The following warning message occurs when running the nls on some data:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warning message:
In is.na(wts) : is.na() applied to non-(list or vector) of type 'NULL'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and I would like to know what is causing it and how I can fix it.
As an example, the following, from Venables and Ripley, which
2004 May 14
1
Problem with logtrans, from library MASS
Greetings all!
This problem occurs using R 1.8.1 on Windows XP. I downloaded the
binaries for R and all packages, including the VR bundle, in December 2003.
The data consists of NZ$ prices and attributes for 643 cars.
> summary(price)
Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
14290 35800 48990 65400 79000 285000 2
> library(MASS)
> boxcox(price
2001 Apr 27
1
INSTALL Problems
Dear All,
I have tried to install the tensor package (from:
http://cran.r-project.org/src/contrib/PACKAGES.html#tensor ), using the
comand:
"
shell("Rcmd INSTALL tensor")
"
then I got the following mensage:
----------------------------------------------------------------------------------
make: Entering directory `/d/bin/cran/rw1022/src/gnuwin32'
make DLLNM= EXTRADOCS= \
2001 Apr 05
1
No subject
R-helpers,
Beginner in R language, I have a problem to install a package (multiv) in R
for Windows 98 (R-Gui)
First I have got the multiv.zip file from the CRAN precompiled contributed
packages for Windows and put this file in C:/Program Files/rw1022.
in R-Gui I tried to install it as following
> install.packages("C:/Program Files/rw1022/multiv.zip")
I received the following
2010 Jul 27
4
Sweave and scan()
I am introducing the scan() function to my class. Consider the following
file (Scanexamp.Rnw )
\documentclass[12pt]{article}
\begin{document}
<<>>=
height = scan()
64 62 66 65 62
69 72 72 70
part = scan(what = character(0))
"Soprano" "Soprano" "Soprano"
"Alto" "Alto" "Tenor"
"Tenor" "Bass"
2008 Mar 02
2
Recommended Packages
Having just update to R 2.6.2 on my old Windows laptop I notice that the
number of packages is growing exponentially and my usual approach of
get-em-all may not be viable much longer. Has any thought been given to
dividing "contributed" binaries into a recommended set, perhaps a couple
of hundred, and the remained. That way one could install the recommended
ones routinely and add in
2002 Mar 19
0
MASS Book Exercise
Hi,
In the third edition of the MASS book, Chapter 8, Page 252 ~ 253.
I tried applying the same technique on using a negative exponential model
(as suggested in Exercise 1), and trying to get a confidence interval.
What I have changed is follows:
expn <- function(b0, b1, th, x) {
temp <- exp(-x/th)
model.func <- b0 + b1 * temp
# Differentiate temp
derive.negexp <- (x
2006 Nov 13
2
A printing "macro"
I am exploring the result of clustering a large multivariate data set
into a number of groups, represented, say, by a factor G.
I wrote a function to see how categorical variables vary between groups:
> ddisp <- function(dvar) {
+ csqt <- chisq.test(G,dvar)
+ print(csqt$statistic)
+ print(csqt$observed)
+ print(round(csqt$expected))
+ round(csqt$residuals)
+ }
>
> x
2001 Mar 12
1
Summary :Re: 1.2.2 under M$ windows 2000 lots of plots out of memory?
hi list-
Under windows 2000 I was asking for more than the 256MB limit. solutions (and first suggester) were:
1) Reading the rw-FAQ and ?Memory for memory management under 1.2.x. (Prof Brian Ripley) <- this is the one I should have used
2) Run with P:\r\base\rw1022\bin\rgui.exe (Thomas Lumley) <-this is one I used
3) use gc() (Joerg Polzehl) <this is handy
Thanx to the list
2003 Jan 12
1
likelihood and score interval estimates for glms
G'day list!
I'm thinking about programming likelihood and score intervals for
generalized linear models in R based on the paper "On the computation of
likelihood ratio and score test based confidence intervals in
generalized linear models" by Juha Alho (1992) (Statistics in Medicine,
11, 923-930).
Being lazy, I thought that I would ask if anyone else on the list has
2006 Jun 05
1
Extracting Variance components
I can ask my question using and example from Chapter 1 of Pinheiro & Bates.
> # 1.4 An Analysis of Covariance Model
>
> OrthoFem <- Orthodont[ Orthodont$Sex == "Female", ]
> fm1OrthF <-
+ lme( distance ~ age, data = OrthoFem, random = ~ 1 | Subject )
> summary( fm1OrthF )
Linear mixed-effects model fit by REML
Data: OrthoFem
AIC BIC
2003 Sep 17
5
Quit asking me if I want to save the workspace!
How do you stop R from putting up a dialog box when you quit Rgui?
(I use Windows and I never save workspaces that way)
Murray
--
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz Fax 7 838 4155
Phone +64 7 838 4773 wk +64 7 849 6486 home
2010 Jun 14
2
Html help
I have just installed R 2.11.1 on my XP laptop.
I like html help for browsing but text help for on-the-fly look-ups. I
was a bit surprised when I was asked to choose between them during the
installation. I chose text, thinking I could fix the html help later,
which is what I am trying to do now.
Now when I ask for html help my browser goes to
'http://-ip-number-/doc/html/index.html'
2006 Apr 14
5
vector-factor operation
I found myself wanting to average a vector [vec] within each level of a
factor [Fac], returning a vector of the same length as vec. After a
while I realised that
lm1 <- lm(vec ~ Fac)
fitted(lm1)
did what I want.
But there must be another way to do this, and it would be good to be
able to apply other functions than mean() in this way.
Cheers, Murray
--
Dr Murray Jorgensen
2004 Feb 05
2
Sweave problem
Here is the file minimal.Snw:
\documentclass[a4paper]{article}
\title{R tips and tricks}
\author{Murray Jorgensen}
\usepackage{Sweave}
\begin{document}
\maketitle
\section*{Entering data from a single variable}
The following data are transformed tensile strength measurements on
polyester
fibres. They may be found on the file \texttt{TENSILE.DAT}. We
may enter this data into R using the
2001 Sep 18
2
Error mean square
If rb.lm is an lm-object, I can access the error mean square as
s2 <- sum(rb.lm$residuals^2)/rb.lm$df.residual
This seems a bit like hard work for such a commonly wanted quantity. Is
there a better way to do this?
Murray Jorgensen
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at
2003 Aug 20
5
Interlacing two vectors
I want to interlace two vectors. This I can do:
> x <- 1:4
> z <- x+0.5
> as.vector(t(cbind(x,z)))
[1] 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5
but this seems rather inelegant. Any suggestions?
Murray
--
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz
2000 Sep 24
2
FW: Crosstabulation
how about this: tapply(vector,list(factor1,factor2),function)?
-----Original Message-----
From: owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Murray Jorgensen
Sent: 24. september 2000 02:46
To: R-help
Subject: [R] Crosstabulation
I can't seem to find a function in R similar to Splus crosstabs() for
creating a multi-way table from factors and a