for example.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning Centre
University of Auckland
New Zealand
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman
?
Several things.
1) DELTA is not a data frame here. It is a list: mode(DELTA)
2) DELTA$delta is not a vector. It is a factor. For some reason when you
generated DELTA, your delta has become a factor. Arithematic operations on
factors are meaningless.
HTH.
Kevin
Hi,
Take a look at the car package, there is a function called vif.
HTH,
Kevin
- Original Message -
From: Briggs, Meredith M [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 1:43 PM
Subject: [R] Identifying Multicollinearity in sparse datasets
Hello
Hi,
-Original Message-
WEKA includes a re-implementation of the ideas behind C4.5,
but not C4.5.
If my memory serves me right, WEKA people called this
re-implementation J4.8.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co
and installed the
file
lme4 from Crane, is this the same as lme? the problem is R
still print no
function
named lme, how should I do.
I believe you are looking for nlme package. Try to load it.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats
haven't tried it) something like:
jpeg(paste(test., i, .gif, sep = )
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats Workshops Co-ordinator
The University of Auckland
New Zealand
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats
] == PRUDHOE LANE ||
STREET[i] == VIRGIL PL ||
STREET[i] == WILMOT ST ) st[i] - Other
else st[i] - STREET[i]
}
But I'm sure there is a better way
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning
have to pay for
it -- of course, donations are welcome by the R Foundation ;D.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning Centre
University of Auckland
New Zealand
you click? Is it Rgui or Rterm (you should double click on Rgui)
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning Centre
University of Auckland
New Zealand
__
[EMAIL
be to use the apply()
function on a data frame instead using a loop. Avoid loops if you
can.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats Workshops Co-ordinator
The University of Auckland
New Zealand
__
[EMAIL
downloading them
what is the step for implementing them in my library?
Which operating system are you running R on?
Reading the manuals might be a good start.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats Workshops Co-ordinator
The University
continuous variables and you want to draw a
scatter plot, one way to do it is to use plot(). For example:
plot(x, y)
Take a loot at ?plot to find out how to use it.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
Student Learning Centre
-Original Message-
From: Justin Xi ZHU [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 17, 2004 2:30 PM
To: Ko-Kang Kevin Wang
Subject: RE: [R] plot
Hi,
Thanks for your email.
Result 1: 23, 234, 45, 39 corresponding to Q1, Q2, Q3 and Q4.
Result 2: 123, 34, 454, 45
of my incomplete book,
http://www.stat.auckland.ac.nz/~kwan022/pub/R/RBook/, has a short
explanation about data structure in R. The chapter has sort of been
complete (it's in the draft version)
HTH,
Kevin Wang
Ko-Kang Kevin Wang, MSc(Hon
place to go.
And finally, there is google;-D.
HTH,
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats Workshops Co-ordinator
The University of Auckland
New Zealand
__
[EMAIL PROTECTED] mailing list
https
Quoting Marcos Sanches [EMAIL PROTECTED]:
I mean, I want something like this:
i-0
While(i100){
do a lot of commands
print i
i-i+1
}
How do I print the i at each step?
Is
print(i)
what you want?
Cheers,
Kevin
Ko-Kang
mining?
Not specifically for R, but a must-have for anyone going into data mining
area is The Elements of Statistical Learning: Data Mining, Inference, and
Prediction, by Hastie et. al.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
SLC Stats Workshops Co
meant the
R for Windows FAQ, in which case, the section before How do I install R
for Windows tells you where to get it! Take a look at
http://cran.r-project.org/bin/windows/rw-FAQ.html#Where%20can%20I%20find%20
the%20latest%20version%3f
HTH
Kevin
Ko
put your codes
here.
But I'm guessing it is because you typed something like:
foo = read.table(C:\MikeWeather2.txt)
Try to use C:/MikeWeather2.txt or C:\\MikeWeather2.txt.
HTH.
Kevin
Ko-Kang Kevin Wang, MSc(Hon)
Statistics Workshops Co-ordinator
not sure why I
got decimals from the 7th value, as my input vector does not have any
specific times after the dates.
Any insights would be greatly appreciated...;-D
--
Cheers,
Kevin
---
Try not. Do, do! Or do not. There is no try
(TIMESOLD,TIMESOLD2)
--
Cheers,
Kevin
---
Try not. Do, do! Or do not. There is no try
Jedi Master Yoda
Ko-Kang Kevin Wang, MSc
SLC STATS 10x Workshop Coordinator
University of Auckland
New Zealand
Homepage: http
.:
1999-1
1999-2
1999-3
1999-4
is it possible to do with strptime? Or do I have to do something
creative? ;-D
--
Cheers,
Kevin
---
Try not. Do, do! Or do not. There is no try
Jedi Master Yoda
Ko-Kang Kevin Wang
Master
NA NA NA NA
It is totally messed up.
I'd really appreciate if anyone can point out where I did wrong *_*!
Many thanks in advance.
--
Cheers,
Kevin
---
Try not. Do, do! Or do
My problem is: I do not know the command / or parameter I need to read the rows
and process the stored information one after the other.
read.table() should know how to read each rows, can you provide an subset
of your data?
--
Cheers,
Kevin
not of
opposite sign)
What kind of mathematical calculations were you trying to do when you got
this error message? As discussed off-list last night, since you want to
operate on each row using the same operation, have you tried using
apply()?
--
Cheers,
Kevin
Ligges, for WinEdt). Both allows direct communication from the editor to
R
HTH.
--
Cheers,
Kevin
---
Try not. Do, do! Or do not. There is no try
Jedi Master Yoda
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor
) # x-axis at the bottom
axis(2) # y-axis on the left
axis(4) # y-axis on the right
--
Cheers,
Kevin
---
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University
/2.205, lab = Wt.lbs, srt = 90)
mtext(Weight (lb), side = 4, line = 3)
par(oldpar) # restore settings
detach()
Note that you can also get the above codes from
$R_HOME/library/MASS/scripts/ch08.R.
--
Cheers,
Kevin
---
Ko-Kang
://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
---
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New Zealand
Homepage: http://www.stat.auckland.ac.nz
little or no
experience with R. The current ideas are at
http://www.stat.auckland.ac.nz/~kwan022/pub/R/RBook/ . We are planning on
finishing it by Feb/March 2004 -- which may be too late for you. Once it
is finished we will submit it to CRAN.
--
Cheers,
Kevin
of Westminster
London, UK
- Original Message -
From: Douglas Bates [EMAIL PROTECTED]
To: Haifeng (Kevin) Xie [EMAIL PROTECTED]
Cc: R-help mailing list [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 5:50 PM
Subject: Re: [R] Variance-covariance matrix for beta hat and b hat from lme
Haifeng
suggestions will
be particularly welcome.
Many thanks.
Kevin Xie
Research Student
University of Westminster
London, UK
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
= This is my x-label, line = -2)
Of course, this is just a silly example, with 50 uniform random numbers
between -0.2 and 0.2. But you get the idea...
--
Cheers,
Kevin
---
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor
(CDT)
From: Giovanni Petris [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [R] comments and Sweave
I am using Sweave to produce handouts for teaching.
Is there a way of making Sweave keep the comments following the `#' in
the code chuncks?
Thanks,
Giovanni
--
Cheers,
Kevin
)
system(read)
par(ask = TRUE)
will do what you want.
--
Cheers,
Kevin
---
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New Zealand
Homepage: http
On Tue, 21 Oct 2003, Ko-Kang Kevin Wang wrote:
On Tue, 21 Oct 2003, Ernie Adorio wrote:
Am using R on a Linux box and am currently writing an interactive R script.
1. How do I ask a user to press any key to continue ? I used a system call to
read but this only works if the Enter key
to upgrade your R version first? R 1.3.1 is kind of old
now..
--
Cheers,
Kevin
---
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New Zealand
Homepage: http
wrong or is
there a better editor(freeware) which I could get.
If you are really programming in R, you really should get Emacs/ESS
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament
has happened when you typed plot(x, y)? Have you created two
vectors called x and y? Were they any error messages, if so what are the
messages?
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members
On 1 Oct 2003, Diego Riano wrote:
Does anyone know how to truncate and axis in R?
What do you mean by truncate? Do you mean to change the range of the
axes? If so then something like
plot(x, xlim = range(), ylim = range())
should do (just put the desired range
--
Cheers,
Kevin
and the
developers are now concentrating on GGobi? I could be wrong though...
The other thing, I think, is that GGobi supports XML data format and XGobi
doesn't (or not very well?).
--
Cheers,
Kevin
--
On two occasions, I
/mailman/listinfo/r-help
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am not able
to re-order my columns?
?order or ?sort
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I
Your method looks like a naive reimplementation of integration, and
won't work so well for distributions that have the great majority of the
probability mass concentrated in a small fraction of the sample space.
I was hoping for something that would retain the adaptability of
integrate().
Given f, a pdf over a finite interval, is there any existing R function that
can efficiently tabulate the cumulative distribution function for f, or
produce all N+1 quantiles of the form i/N? Efficiently here means better
than doing repeated integrations for each point.
the second:
foo[,1] - foo[,2]
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am
experience you already have. I'm
giving a small workshop next week on these areas and my notes are
available at http://www.stat.auckland.ac.nz/~kwan022/rinfo.php
I'm planning on extend the notes into a book I'm writing -- which will be
submitted to CRAN when it is completed.
--
Cheers,
Kevin
of Excel was released? I cannot keep myself from wondering
why Excel still produces ugly graphs.
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put
only for
those individuals that also have a value Y in a
certain range?
e.g.
x = rnorm(100)
y = 1:100
x[y = 20:50]
will give you the value of x when y is between 20 and 50. To do a
histogram, type:
?hist
--
Cheers,
Kevin
a data frame by selecting all cases whose line numbers are in a
supplied vector (which could be used to extract random subfiles of
particular sizes)
Does anyone know of a package that might be useful for this?
Murray
--
Cheers,
Kevin
with neural networks in R or if you could tell us were we can find such
information.
We would highly appreciate if you could help us on that matter.
Thank you very much in advance.
Best regards,
Anne Bruns, Miriam Dreißig, Sascha Hartung
--
Cheers,
Kevin
, although print(my.tree) does work.
So have you *read* the help when you do ?plot.rpart ?
Please read the example, and see how it is used. Hint: you do not use
plot.rpart(), but plot()
--
Cheers,
Kevin
--
On two
Coefficients of linear discriminants:
LD1
diagonal.moment-1.575854e-03
cluster.shade -1.209398e-04
histogram.kurtosis -2.028278e+02
--
Cheers,
Kevin
--
On two occasions, I have been asked
find function princomp , can you help me resolve this problem?
Thanks,
Jixin Dai, Ph.D
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
(or something like that, I'm using Chinese
Windows and I'm translating the words).
2) In Rgui, File - Change dir...
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage
. It has a chapter on
non-linear regression and smooth regression, using packages like nls.
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put
be going.
than i want make a crosstables with the first and the second variable.
I'm not sure what SPSS does as I have never used it. But is the
CrossTable() function in the gregmisc library what you want?
--
Cheers,
Kevin
).
In every loop the object stat is used. This error could not be the real problem I
think.
I don't think it is a memory problem. From your error message, the object
stat cannot be found. Have you initialised stat before the loop?
--
Cheers,
Kevin
]]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine
a Q-Q plot to informally assess GOF. I
was wondering if there are some more formal statistical tests for this
purpose.
I appologise for asking questions that are slightly out-of-topic.
Many thanks.
Kevin
__
[EMAIL PROTECTED] mailing list
https
,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am not able to rightly apprehend the
kind
prediction.
Can anybody point me to a citation or discussion?
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right
#v: virginica
ir - iris[, -5]
Species - rep(c(s, c, v), rep(50, 3))
ir - as.data.frame(cbind(ir, Species))
ir.rp - rpart(Species ~ ., data = ir)
plot(ir.rp)
text(ir.rp)
This is probably the long/silly way, but it works ;-D
--
Cheers,
Kevin
ignored in the analysis. So far I
have not been able to figure out how to deal with missing values in R and
have solved the problem by deleting observations with missing values before
loading them into R.
Can anyone give me a hint on how to do this in a simpler way?
--
Cheers,
Kevin
not know how to change this
plot.regression function to do that.
plot.regression = function(x,y)
{
panel.xyplot(x,y)
panel.abline(lm(y~x))
}
xyplot(yg~xg | g, panel=plot.regression)
Any help would be great!
Thanks,
Kevin Brown.
__
[EMAIL PROTECTED] mailing
parameters than a text
description.
Kevin Wright
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
it is an obvious place to start looking?
awaiting a prompt reply
The helpers on the list usually respond within 24 hours, but it may not be
a prompt reply.
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr
of different colours
depending on the value of a categorical variable ?
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures
?
Thanx a ton!
Mark
[[alternate HTML version deleted]]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am not able to rightly apprehend the
kind
ahead and tried to install Perl (from the suggested website in
readme.packages) but the installer told me i already had Perl installed!
By the way,
Rcmd COMPILE somefile.f
gives the same error message.
--
Cheers,
Kevin
-help
--
Cheers,
Kevin
--
On two occasions, I have been asked [by members of Parliament],
'Pray, Mr. Babbage, if you put into the machine wrong figures, will
the right answers come out?' I am not able to rightly apprehend
w, as follows :
x w
1 1 1
2 2 1
3 3 1
4 4 1
etc
I would like to apply the function foo to each 'pair' within DF e.g
foo(1,1), foo(2,1), foo(3,1) etc
I have tried
apply(DF,foo)
apply(DF[,],foo)
apply(DF[DF$x,DF$w],foo)
--
Cheers,
Kevin
`.' 0.1 ` ' 1
My understanding is the MANOVA summary returns a list. However I am not
sure how to extract out only part of the list. For example is I want to
extract the Pillai's test statistic, 0.5267, how can I do this?
--
Cheers,
Kevin
for ... in specified packages and libraries...
Provided you installed the package(s) properly, have you loaded it before
calling the documentation? Using the car package example:
library(car)
?box.cox
seem to work fine.
--
Cheers,
Kevin
forward to your early reply.
--
Cheers,
Kevin
--
/* Time is the greatest teacher, unfortunately it kills its students */
--
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department
Hi,
I've been looking through the documentation for sample(), but can only get
it to work with vectors. Is it possible to sample from a dataframe?
--
Cheers,
Kevin
--
/* Time is the greatest teacher, unfortunately
If so, I've had trouble finding it. Can anyone help?
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
to refer
to library documents (often not readily available ) to find them.
Many thanks in advance.
--
Cheers,
Kevin
--
/* Time is the greatest teacher, unfortunately it kills its students */
--
Ko-Kang Kevin Wang
-levels? For example:
if(x = 3) then 1
elseif(3 x = 4) then 2
elseif(x 4) then 3
--
Cheers,
Kevin
--
/* Time is the greatest teacher, unfortunately it kills its students */
--
Ko-Kang Kevin Wang
Master of Science
Hi,
I've found a much better solution than using ifelse(). I found about
cut() from MASS4 Page 383, which actually does a better job .
On Wed, 26 Mar 2003, Ko-Kang Kevin Wang wrote:
Date: Wed, 26 Mar 2003 23:20:04 +1200 (NZST)
From: Ko-Kang Kevin Wang [EMAIL PROTECTED]
To: R Help [EMAIL
.
Anybody has any experience with rsync on windows?
Kjetil
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
are welcome to direct further questions about ggobi and
Rggobi to [EMAIL PROTECTED]
Debby
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
--
Cheers,
Kevin
--
Cheers,
Kevin
--
/* Time is the greatest teacher, unfortunately it kills its students */
--
Ko-Kang Kevin Wang
Master of Science (MSc) Student
SLC Tutor and Lab Demonstrator
Department of Statistics
University of Auckland
New
) on your
machine in order to use it.
Cheers,
K Wang
Ko-Kang Kevin Wang
Master of Science (MSc) Student
Department of Statistics
University of Auckland
New Zealand
www.stat.auckland.ac.nz/~kwan022
__
[EMAIL
packages, but the internet portal
http://www.stats.ox.ac.uk/pub/Rtools/ hasn't been working since a few
days.
Where can I get the file tools.zip?
It has been working for me! I went there two days ago, and a few hours ago,
and just went again. All the time I can view the page fine.
Cheers,
Kevin
, take a look at:
?png
Cheers,
Kevin
Ko-Kang Kevin Wang
Master of Science (MSc) Student
Department of Statistics
University of Auckland
New Zealand
www.stat.auckland.ac.nz/~kwan022
__
[EMAIL PROTECTED
it was (send plot :range 0). Thanks
much,
Is xlim and ylim in the plot() what you want? For example:
x - rnorm(100)
plot(x)
plot(x, xlim = c(20, 80), ylim = c(-2, 2))
the second plot() will restrict the range of x-axis to be between 20 and 80,
y-axis between -2, 2.
Cheers,
Kevin
at this:
is.function(?)
Error: syntax error
is.function(?)
[1] FALSE
I grow used to not quoting things and then stumble over 'exists' from time to time.
Looking forward to clarity or maybe a request for change.
Kevin Wright
This communication is for use by the intended recipient and cont
,
Kevin
Ko-Kang Kevin Wang
Master of Science (MSc) Student
Department of Statistics
University of Auckland
New Zealand
www.stat.auckland.ac.nz/~kwan022
__
[EMAIL PROTECTED] mailing list
http
/rinfo.php (Section 5).
I'm not sure the exact contents in the labdsv_0.9-1.tar.gz , but in general
you can first unpack it with, e.g.:
tar zxvf labdsv_0.9-1.tar.gz
then you may need:
Rcmd labdsv_0.9-1
Hope this helps,
Kevin
Ko-Kang Kevin Wang
. Please let know an alternative for getting the
software.
Which set up binary did you downloaded? It should not be corrupted. Did
you download the rw1062.exe in, for example,
http://cran.r-project.org/bin/windows/base ?
Ko-Kang Kevin Wang
Master
distribution. Could someone help me? Thanks,
Have a look at
?legend
Kevin
Ko-Kang Kevin Wang
Master of Science (MSc) Student
Department of Statistics
University of Auckland
New Zealand
www.stat.auckland.ac.nz/~kwan022
lecture00-graph-01.eps in the
directory, with a postscript Viewer?
The last point, I think pdflatex (or pdftex) does not accept PS/EPS
formatted picture. Can you latex trix.tex? If so, try to save your
histogram as a PDF or PNG file, then pdflatex it again.
Cheers,
Kevin
201 - 295 of 295 matches
Mail list logo