ue, 4 Sep 2007 15:59:54
+0200From: Hans Ole ?rka <[EMAIL PROTECTED]>Subject: [R] For loop with if else
statementTo: "'r-help@stat.math.ethz.ch'"
Message-ID:<[EMAIL PROTECTED]>Content-Type:
text/plain; charset="iso-8859-1" Hi,I try to make a simple for
On 9/4/2007 9:59 AM, Hans Ole Ørka wrote:
> Hi,
> I try to make a simple for loop with a if else statement (First example -
> Below) and extend it to a more complex loop (Second example). However, my
> results
>
> #First example:
> x=c(1,2)
> t=for(i in 1:length(x)){
> if (x==1){a=x+1}else
> if
Hi,
I try to make a simple for loop with a if else statement (First example -
Below) and extend it to a more complex loop (Second example). However, my
results
#First example:
x=c(1,2)
t=for(i in 1:length(x)){
if (x==1){a=x+1}else
if (x==2){a=x}
}
Returned from R:
Warning messages:
1: the condi
Orou Gaoue wrote:
> Hi,
> Is there a way to do a sphericity test in R for repeated measures ANOVA
> (using aov or lme)? I can't find anything about it in the help.
> Thanks
>
> Orou
>
There is for lm() with multivariate response (mauchly.test).
For lme(), you can com
ricity test in R for repeated measures ANOVA
> (using aov or lme)? I can't find anything about it in the help.
> Thanks
>
> Orou
>
> [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch maili
Hi,
Is there a way to do a sphericity test in R for repeated measures ANOVA
(using aov or lme)? I can't find anything about it in the help.
Thanks
Orou
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
Hi Jim,
You could also use the 'select' argument. For example,
plot(gam.object,se=TRUE,select=1)
will give you the smooth plot for the first variable.
Be sure to read the documentation. See ?plot.gam for specifics details on
plotting gam objects.
Julian
On Fri, 17 Aug 2007, Dieter Menne wr
?plot.gam or ?preplot.gam says there is an ask= option, slightly bizarrely set
to F by default.
If ask=T, You'll get a menu of options for plotting. In windows, hitting "Esc"
will get you out of the menu.
example:
gam(Kyphosis ~ s(Age,4) + Number, family = binomial, data=kyphosis,
trace=TRUE)
jim holtman gmail.com> writes:
>
> Turn 'Recording" on for the plots.
>
> windows(record=TRUE)
>
> or select from the GUI.
>
> I mean if the object has several plots how can I
> get those?
> > "gam.object <- gam(y ~ s(x,6) + z,data=gam.data)
> > plot(gam.object,se=TRUE)"
Or use something li
Turn 'Recording" on for the plots.
windows(record=TRUE)
or select from the GUI.
On 8/17/07, Brad Zhang <[EMAIL PROTECTED]> wrote:
> Hi, All,
>
> I am a beginner for R. Now I have installed R 2.5.1 in Window
> environment. After I run a program such as "gam" I would like to display
> a plot for t
Hi, All,
I am a beginner for R. Now I have installed R 2.5.1 in Window
environment. After I run a program such as "gam" I would like to display
a plot for the object. The following is an example. When I did this,
only the last plot was presented on my screen. How can I get a plot
before the last p
Any time you are calling a function one value at a time,
it is worth asking if you can eliminate a loop (or more).
If 'G.fun' is vectorized in its first argument, then you can
easily get rid of the three inner loops. Just generate a
vector of all of the values and do:
gj <- sum(G.fun(long.vector
Hi,
is there a way of simplifying the following code:
G <- rep(NA,n)
for(i in 1:n)
{
gj <- 0
for(j in 1:n)
{
for(l in 1:n)
{
for(m in 1:n)
{
gj <- gj+G.fun(XB[i]+p[3]*X[j,3]+p[4]*X[l,4]+p[5]*X[m,5],ff)
}
}
}
G[i] <- gj/n^3
}
Thanks.
Joaquim Santos
_
f Of Seth Roberts
> Sent: Sunday, July 22, 2007 10:38 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] using R for a reaction-time experiment
>
>
> I want to use R to run a reaction-time experiment: Something
> appears on the screen, I respond by typing something (one
> ke
;.
Alternatively, you might use "Rpy" to analyse the data.
Christophe Pallier
On 7/23/07, Mike Lawrence <[EMAIL PROTECTED]> wrote:
>
> Psych grad student here, R user for 3 years. Using R for experiments
> is likely not advisable as it has no fine control of disp
Psych grad student here, R user for 3 years. Using R for experiments
is likely not advisable as it has no fine control of display timing
(ex synching stimuli to the screen refresh, etc). On recommendation
of colleagues I'm learning the Python language, which has a module
called
Have you tried DMDX instead of R? And then feed the reaction times
collected by DMDX to R for manipulation?
IKD
===
On Κυρ, Ιούλιος 22, 2007 20:55, Seth Roberts wrote:
>
> I'm using Windows XP unfortunately.
>
>
> Ted.Harding wrote:
>>
>> On
__
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal,
On 22-Jul-07 16:38:02, Seth Roberts wrote:
>
> I want to use R to run a reaction-time experiment:
> Something appears on the screen, I respond by typing something
> (one keystroke), the system measures the speed of my response.
> R would be great for this if only I didn't have to hit Enter
> to en
s now but they
require two actions per trial: hit keystroke, hit Enter.
Is there some way that R can be made to respond to a single keystroke (other
than Enter)?
--
View this message in context:
http://www.nabble.com/using-R-for-a-reaction-time-experiment-tf4125643.html#a11732474
Sent from the R
On 4/07/2007, at 12:01 PM, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
> Hi list,
>
> could anyone please educate me on the following:
>
> lst<-seq(47, 239, by=12)
>
> for(n in lst)
> {
> lower=n; upper=lower+10
>for(i in lower+2 : upper)
>{
> print(paste(n, " i: ", i, " lower
2000
+61 (2) 9292 1566
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, 4 July 2007 10:01 AM
To: r-help@stat.math.ethz.ch
Subject: [R] for loop doesn't stop with upper loop value
Hi list,
could anyone please educate
Hi list,
could anyone please educate me on the following:
lst<-seq(47, 239, by=12)
for(n in lst)
{
lower=n; upper=lower+10
for(i in lower+2 : upper)
{
print(paste(n, " i: ", i, " lower: ",lower, " upper :", upper))
}
}
does not stop when i = upper
A while loop fixes this b
I suspect
> >
> > Peter, that wording does seem familiar, just cannot recall
> where I saw
> > it. Perhaps on the O'Reilly web site, where it is no longer listed.
> >
> > For confirmation, I called O'Reilly's customer service in
> Cambridge, MA
There is a list of mailing lists here:
https://stat.ethz.ch/mailman/listinfo
On 5/15/07, Armin Goralczyk <[EMAIL PROTECTED]> wrote:
> 2007/5/14, Andy Fugard <[EMAIL PROTECTED]>:
> > Hello all,
> >
> > There's a new mailing list for researchers in psychology who are
> > learning and using R. New
2007/5/14, Andy Fugard <[EMAIL PROTECTED]>:
> Hello all,
>
> There's a new mailing list for researchers in psychology who are
> learning and using R. New users of R are especially welcome.
>
>
Hi List
Does anyone know if there is a special list for researchers in medicine using R?
--
A. Goralcz
Hello all,
There's a new mailing list for researchers in psychology who are
learning and using R. New users of R are especially welcome.
To join, venture to
http://www.jiscmail.ac.uk/archives/psych-r.html
and click
"Join or leave the list (or change settings)"
You can also peruse the
Hello everybody
I'm very new at using R so probably this is a very stupid question.
I have a matrix of "p" columns and I have to calculate for each of them the
"two sample t-statistic" and p-value and to save the results into two different
vectors.
I have divided my matrix into two submatrices: s
Howdy,
I was just wondering if anyone out there has compiled R to run on the
IBM BlueGene, and if so, could they share their compilation options /
configuration?
Thanks,
Mike
[[alternative HTML version deleted]]
__
R-help@stat.math.
Dear Sir
I am running a script file for fortran but it showing error i.e.
.sgb.x : /sbin/loader: Fatal Error : cannot map libm_c32.so
here sgb.x is its output file that I have got after running make file.
I have seached this library file inside /usr/shlib directory its not there.
Please tel me
Thanks Adai. You can tell by the clumsiness of my script that I am new
to R and to programming. After wrestling with it this morning, I found
that the following worked best:
pre.outliers<-subset(final.roi.df, gFDR4FWHM >= 1.96)
detach(final.roi.df)
attach(pre.outlie
Try changing
outliers <- subset(pre.outliers, gtvalue4FWHM >= 0.00)
to
w <- which( gtvalue4FWHM >= 0.00 )
outliers( length(w) > 0, pre.outliers[ w, ], NA )
Other comments:
1. Make sure you detach(data_gcs) at the end of the loops
2. scale() works on columns by default, so try
Hello-
I have a script which steps through a series of subjects, and for the
subjects I remove outlying values. After removing these outliers, I
specify a cutoff, keeping only values over a certain value (e.g., 1.96).
I want to populate a matrix with a statistic of the values that make the
cut
er 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
- Original Message -
From: "Luis Ridao Cruz" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 21, 2007 4:14 PM
@stat.math.ethz.ch
> Onderwerp: [R] for loop in assigning column names
>
> R-help,
>
> I have a data frame (df) and I want to add some columns whose
> names should correspond to the "i" index in the loop below.
>
> for(i in 1:10)
> {
> df$eval(paste(&
R-help,
I have a data frame (df) and I want to add some columns whose names
should correspond to the "i" index in the loop below.
for(i in 1:10)
{
df$eval(paste("St", as.character(i), sep = "" )) <- ObJeCt[i]
}
An error message comes out :
"Error: attempt to apply non-function"
How can I
oops! I gave the wrong link - the correct one is
http://www.statistics.com/courses/Rstatistics/
pb
Dr. John Verzani will present his online course, "Using R for Introductory
Statistics" April 6 - May 4 at statistics.com. Participants can ask
questions and exchange commen
Dr. John Verzani will present his online course, "Using R for Introductory
Statistics" April 6 - May 4 at statistics.com. Participants can ask
questions and exchange comments with Dr. Verzani via a private discussion
board throughout the period.
This course covers the use of R to
ke to select certain files and copy only
> the selected files to another directory.
>
> The files are images and there is no need, actually no desire, to
> open them. Is there a way to use R for copying and pasting files with
> any file extension to another directory without openi
; the selected files to another directory.
>
> The files are images and there is no need, actually no desire, to
> open them. Is there a way to use R for copying and pasting files with
> any file extension to another directory without opening them?
>
> Thanks already for any help,
gt;
To:
Sent: Monday, March 12, 2007 8:33 AM
Subject: [R] R for copying and pasting selected image files?
> Hello,
>
> I would like to use R to process a list of text strings. The text
> strings are filenames, encoding experimental settings. Based on the
> information in there I'd l
ther directory.
>
> The files are images and there is no need, actually no desire, to
> open them. Is there a way to use R for copying and pasting files with
> any file extension to another directory without opening them?
>
> Thanks already for any help,
>
> Kim
>
&g
need, actually no desire, to
open them. Is there a way to use R for copying and pasting files with
any file extension to another directory without opening them?
Thanks already for any help,
Kim
__
Kim Milferstedt
University of Illinois at Urbana-Cham
Mat,
Thank you for the update and for the link. I look forward to (hopefully)
using R for future FDA submissions.
Regards,
-Cody
"Soukup
Mat,
Thank you for the update and for the link. I look forward to (hopefully)
using R for future FDA submissions.
Regards,
-Cody
"Soukup
" software tool. Specifically,
1. R was granted approval by our IT folks for use on our government PC's
(2 years in the making to get this).
2. An R course is in development for FDA reviewers to use R for review
of clinical trial data.
3. This Monday at the 1st FDA/DIA Spring Meeting I wi
I would like to use R for submissions to FDA/CDRH (the medical device
company I work for currently uses only SAS). Previous postings to the list
regarding R and 21 CFR 11 compliance have been very helpful. However,
reluctance to using open source software for statistical analyses and
reporting
lalitha viswanath yahoo.com> writes:
>
> Hi
> I am looking for suitable packages in R that do
> regression analyses using least median squares method
> (or better). Additionally, I am also looking for
> packages that implement algorithms/methods for
> detecting outliers that can be discarded befo
It's not often one gets needs to correct Gabor, but no,
least median of squares is not the same as least absolute error
regression.
Take a look at the package robust if you want the lms.
url:www.econ.uiuc.edu/~rogerRoger Koenker
email[EMAIL PROTECTED]Depar
Try rq in quantreg using the default value for tau.
On 2/28/07, lalitha viswanath <[EMAIL PROTECTED]> wrote:
> Hi
> I am looking for suitable packages in R that do
> regression analyses using least median squares method
> (or better). Additionally, I am also looking for
> packages that implement a
: Wednesday, February 28, 2007 10:04 AM
To: r-help@stat.math.ethz.ch
Subject: [R] Packages in R for least median squares regression and
computingoutliers (thompson tau technique etc.)
Hi
I am looking for suitable packages in R that do
regression analyses using least median squares method
(or better
Hi
I am looking for suitable packages in R that do
regression analyses using least median squares method
(or better). Additionally, I am also looking for
packages that implement algorithms/methods for
detecting outliers that can be discarded before doing
the regression analyses.
Although some webs
similar to Sys.sleep() which haults the execution of R for sometime?
Thank you,
Shubha
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
ording does seem familiar, just cannot recall where I saw
> it. Perhaps on the O'Reilly web site, where it is no longer listed.
>
> For confirmation, I called O'Reilly's customer service in Cambridge, MA.
> They confirm that the book was indeed cancelled and never published.
On Thu, 2007-02-01 at 21:32 +0100, Peter Dalgaard wrote:
> Marc Schwartz wrote:
> > On Thu, 2007-02-01 at 10:45 -0800, Seth Falcon wrote:
> >
> >> Benoit Ballester <[EMAIL PROTECTED]> writes:
> >>
> >>
> >>> Hi,
> >>>
> >>> I was wondering if someone could tell me more about this book, (if
Marc Schwartz wrote:
> On Thu, 2007-02-01 at 10:45 -0800, Seth Falcon wrote:
>
>> Benoit Ballester <[EMAIL PROTECTED]> writes:
>>
>>
>>> Hi,
>>>
>>> I was wondering if someone could tell me more about this book, (if it's
>>> a good or bad one).
>>> I can't find it, as it seems that O'Reill
On Thu, 2007-02-01 at 10:45 -0800, Seth Falcon wrote:
> Benoit Ballester <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > I was wondering if someone could tell me more about this book, (if it's
> > a good or bad one).
> > I can't find it, as it seems that O'Reilly doesn't publish any more.
>
> I've
Benoit Ballester <[EMAIL PROTECTED]> writes:
> Hi,
>
> I was wondering if someone could tell me more about this book, (if it's
> a good or bad one).
> I can't find it, as it seems that O'Reilly doesn't publish any more.
I've never seen a copy so I can't comment about its quality (has
anyone seen
Hi,
I was wondering if someone could tell me more about this book, (if it's
a good or bad one).
I can't find it, as it seems that O'Reilly doesn't publish any more.
Thanks,
Ben
--
Benoit Ballester
__
R-help@stat.math.ethz.ch mailing list
https://s
cc,
News: http://listserv.utk.edu/archives/statnews.html
=
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Julien Barnier
Sent: Wednesday, January 31, 2007 3:20 AM
To: r-help@stat.math.ethz.ch
Subject: Re: [R] R for SAS & SPSS Users Docu
Hi,
> I am pleased to announce the availability of the document, "R for SAS
> and SPSS Users", at
> http://oit.utk.edu/scc/RforSAS&SPSSusers.doc
I've looked at the document and printed it. I think it will be very
useful to me, even if I will use it "the reverse
Please consult the R-admin manual, as the INSTALL file asked you to.
It explains this.
On Mon, 29 Jan 2007, Octavio Tourinho wrote:
> Dear friends,
> In configuring R 2.4.1 for Solaris 11, using SunStudio 11 compilers, I
> get the following error.
>
> checking readline/history.h usability... no
>
Greetings,
I am pleased to announce the availability of the document, "R for SAS
and SPSS Users", at
http://oit.utk.edu/scc/RforSAS&SPSSusers.doc . It presents an
introductory view of R for people who already know SAS and/or SPSS.
Included are 27 programs written in all three lang
Dear friends,
In configuring R 2.4.1 for Solaris 11, using SunStudio 11 compilers, I
get the following error.
checking readline/history.h usability... no
checking readline/history.h presence... no
checking for readline/history.h... no
checking readline/readline.h usability... no
checking readlin
On Sun, 21 Jan 2007, Uwe Ligges wrote:
> aat wrote:
>> Hello R users,
>>
>> A beginners question which I could not find the answer to in earler posts.
>>
>> My thought process:
>> Here "z" is a 119 x 15 data matrix
>> Step 1: start at column one, bind every column with column 1
>> Step2: use the n
aat wrote:
> Hello R users,
>
> A beginners question which I could not find the answer to in earler posts.
>
> My thought process:
> Here "z" is a 119 x 15 data matrix
> Step 1: start at column one, bind every column with column 1
> Step2: use the new matrix, "test", in the fitCopula package
>
Hello R users,
A beginners question which I could not find the answer to in earler posts.
My thought process:
Here "z" is a 119 x 15 data matrix
Step 1: start at column one, bind every column with column 1
Step2: use the new matrix, "test", in the fitCopula package
Step3: store each result in my
thz.ch
Sent: Friday, December 29, 2006 3:44:01 AM
Subject: [R] R for Reuters
Can we download data of Reuters from R? Just like we have RBloomberg, do
we have something like RReuters? Is this under the developing stage?
[[alternative HTML version d
Can we download data of Reuters from R? Just like we have RBloomberg, do
we have something like RReuters? Is this under the developing stage?
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mai
On Tue, 5 Dec 2006, Michael McCulloch wrote:
> Thank you to all who made very helpful suggestions to get started with R.
> Duncan Murdoch raised an excellent question, asking about my background and
> reason for using R. I'm an epidemiologist, applying the marginal structural
> models approach (in
Thank you to all who made very helpful suggestions to get started with R.
Duncan Murdoch raised an excellent question, asking about my background and
reason for using R. I'm an epidemiologist, applying the marginal structural
models approach (inverse probability of treatment weights) in a Cox
p
On Fri, 2006-11-17 at 03:57 -0800, Tobias wrote:
> I just recently purchased a Macbook Pro, Intel Core Duo 2GHz, 512 MB RAM.
>
> After looking through several articles in this forum I found the link to the
> R Mac Wiki. I am not that tech-savy but it appeared to me that this link,
>
> http://wik
someone please advice whether I should go through the Wiki article to
set up R or whether it already had been set up properly through the
universal binary package?
Many thanks
Tobias
--
View this message in context:
http://www.nabble.com/How-to-set-up-R-for-Macbook-Pro-Intel-Core-Duo-tf2651081
>>> Thomas Adams<[EMAIL PROTECTED]> 14/11/2006 13:27 >>>
> I'm getting a MacBook and I'd like to stick with OS X rather than
> convert it to Linux just yet.
>
> However, my main concern is having decent performance.
>
> What's my best option:
>
> *use the existing binary for R?
>
> *compile R fres
Mitchell,
I have been using R on a variety of Macs for a couple of years with no
problems. The R aqua interface is very good and I see no compelling
reason to not use the precompiled binaries.
Regards,
Tom
Mitchell Maltenfort wrote:
> I'm getting a MacBook and I'd like to stick with OS X rathe
Running R using the precomplied binary works really well and you
should have no issues. Unless you really know what you are doing
compiling R to work on a mac from sctrach can be at the very least
tedious, at most, daunting, and there is really no point in doing so,
since the binary already takes c
I'm getting a MacBook and I'd like to stick with OS X rather than
convert it to Linux just yet.
However, my main concern is having decent performance.
What's my best option:
*use the existing binary for R?
*compile R fresh under OS X?
* install Linux and run R under that?
Does anyone have any
Hi,
> *I had an Excel file, then I turned it into a "tab-delimited" file, as
> ...
> lahore<-read.delim("lahore.txt")
I suppose you are on windows, hence you can use the package
xlsReadWrite to read the Excelfile directly. It's on the CRAN and you
can download it from the RGui under the menu: Pa
On Mon, 30 Oct 2006, amna khan wrote:
> *I am a very new user of R. I've spent several hours trying to import
> data, so I feel okay asking the list for help. *
> *I had an Excel file, then I turned it into a "tab-delimited" file, as
> instructed by directions My
> filename is "lahore.txt" I amus
Most likely the file lahore.txt isn't in the current working
directory, which is where R will be looking for it as you don't
specify a path (I'm assuming that you are working in Windows). If so,
you have three options. 1) Move lahore.txt to the current working
directory (you can find with directo
Move to the appropriate directory first (or else move your
file to where you are now). For example,
1. if the file is in \ then
setwd("/")
2. or
getwd()
which shows where you are now and then you can move your
file to that spot.
3. Another possibility is:
read.delim(file.choose())
*I am a very new user of R. I've spent several hours trying to import
data, so I feel okay asking the list for help. *
*I had an Excel file, then I turned it into a "tab-delimited" file, as
instructed by directions My
filename is "lahore.txt" I amusing the following commands for read.delim but
i a
Hi
On 24 Oct 2006 at 10:03, Aimin Yan wrote:
Date sent: Tue, 24 Oct 2006 10:03:08 -0500
To: r-help@stat.math.ethz.ch
From: Aimin Yan <[EMAIL PROTECTED]>
Subject: [R] for help
> I have a question in R.
>
>
This question (paraphrase: How do I process a lot of homologous files?) or
something similar has been asked (and answered) a lot lately.
For example, look at this thread from today's posting to r-help:
http://news.gmane.org/find-root.php?group=gmane.comp.lang.r.general&article=72254
Chuck
p.
I have a question in R.
In directory H:/Delta_angle
I have 19 files like this:
ALA.delta
ASN.delta
ASP.delta
CYS.delta
GLN.delta
GLU.delta
HIS.delta
ILE.delta
LEU.delta
LYS.delta
MET.delta
PHE.delta
PRO.delta
SER.delta
THR.delta
TRP.delta
TYR.delta
VAL.delta
I want to read these files to 19 data
Hi, people.
A correspondent puts me in front of a reply I sent to r-help, a few
weeks ago, and quoted below. I should have been tired when I sent it.
Please replace "Eiffel" by "Erlang" all over. Sorry for this error.
Date: 2006-10-05 00:43:36
Message-ID: [EMAIL PROTECTED]
[Ethan B. Fin
gt; Any pointers to resources for learning to write functions in R for
> neophyte programmers? Thanks. --Dale
>
>
> boxcox <- function(x,min,max,step) {
> lambda <- seq(min,max,step)
> s <- length(lambda)
> for (lambda in 1:s)
> n <- nrow(x)
> if(lambda ==0) xL &
ED]>
To: r-help@stat.math.ethz.ch
Subject:[R] for loop not working in function
> I'm trying to write a small function (below) to compute Box & Cox
> transformations of x for arbitrary values of lambda. I'd like to
> specify a range of
lambda
xLbar <- mean(xL)
t1 <- (-n/2)* log((1/n)*sum((xL - xLbar)^2))
t2 <- (lambda - 1)*sum(log(x))
res[i] <- t1 + t2
}
names(res) <- all_lambda
res
}
> Any pointers to resources for learning to write functions in R
or learning to write functions in R for
neophyte programmers? Thanks. --Dale
boxcox <- function(x,min,max,step) {
lambda <- seq(min,max,step)
s <- length(lambda)
for (lambda in 1:s)
n <- nrow(x)
if(lambda ==0) xL <- log(x) else
xL <- ((x^lambda) - 1)/lambda
xLbar <- mean(
[Ethan B. Fini]
> I would like to be able to instantiate an object for each node in my
> simulated (stand alone, one computer) "distributed" environment and
> then proceed by (a) adding message exchange functionality and (b)
> algorithm behavior to each node.
Not so long ago, I quickly glan
Greetings,
Sorry for the basic question, but I am trying to find out if R is a suitable
platform for what I want to do...
I am interested in creating simulations of distributed algorithms (i.e. team
formation, Byzantine Generals , P2P communication modeling, mobile networks)
that would be
On Tue, 26 Sep 2006, Giuseppe Antonaci wrote:
> I think this is not a R-devel question. Sorry to all if I'm wrong,
> please let me know.
In what sense is this not a programming question?
> I managed to build R successfully with the default BLAS but when I
> change the MKRULES to use ATLAS BLAS a
I think this is not a R-devel question. Sorry to all if I'm wrong,
please let me know.
I managed to build R successfully with the default BLAS but when I
change the MKRULES to use ATLAS BLAS and set the path to
"C:/cygwin/home/Administrador/ATLAS/lib/WinNT_ATHLONSSE2" I got the
following error mes
Thank you so much Marc.
Your solution is exactly what I am looking for.
Have a nice weekend.
wensui
On 8/26/06, Marc Schwartz <[EMAIL PROTECTED]> wrote:
> On Sat, 2006-08-26 at 13:06 -0400, Wensui Liu wrote:
> > Dear Lister,
> >
> > If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to
let us know what you want to do because the beauty of R is that, in many
cases, you may not have to loop.
- Original Message -
From: "Wensui Liu" <[EMAIL PROTECTED]>
To:
Sent: Saturday, August 26, 2006 1:06 PM
Subject: [R] for() loop question
> Dear Lister,
>
On Sat, 2006-08-26 at 13:06 -0400, Wensui Liu wrote:
> Dear Lister,
>
> If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to use a for()
> to loop through each number in x one by one?
>
> Thank you so much!
>
> wensui
Two options:
x <- c(0.1, 0.5, 0.6)
> for (i in x) {print (i)}
[1]
Dear Lister,
If I have a list of number, say x<-c(0.1, 0.5, 0.6...), how to use a for()
to loop through each number in x one by one?
Thank you so much!
wensui
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https
This is getting to be a faq -- here is a prior answer:
> No, but the objective function can be computed for any fitted
> rq object, say f, as
>
> rho <- function(u,tau=.5)u*(tau - (u < 0))
> V <- sum(rho(f$resid, f$tau))
>
> so it is easy to roll your own
I don't much like R1, or
Dear R Users,
Did someone implemented the R1 (Pseudo R-2) and likelihood ratio
statistics for quantile regressions, which are some of the inference
procedures for quantile regression
found in Koenker and Machado (1999)?
I tried the Ox version, but my dataset is too large (> 50.000) and the
al
1 - 100 of 362 matches
Mail list logo