}
##
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman
,i+1] -
mean(predict(lm1,cbind(m[,-match(x1,names(m))],x1=a[1,i+1])))
}
plot(a[1,],a[2,],xlab=x1,ylab=Response,type=l,main=Partial Dependence
Plot)
Many thanks,
Mike
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
, byrow=T)
a[2,] - apply(b,2,FUN=function(x)
{mean(predict(lm1,cbind(m[,-match(x1,names(m))],x1=x))) })
plot(a[1,],a[2,],xlab=x1,ylab=Response,type=l,main=Partial Dependence
Plot)
Mike Dugas
[[alternative HTML version deleted]]
__
R-help@r
Thanks for the help. That explains why my time testing showed no
difference. Is there any way to speed up the program? It is unbearably
slow if I increase the number of loops.
Mike
On Wed, Apr 23, 2008 at 6:23 PM, hadley wickham [EMAIL PROTECTED] wrote:
On Wed, Apr 23, 2008 at 4:23 PM
wrote does this using predict() which is useful for modeling
approaches like GAMs.
Mike
On Wed, Apr 23, 2008 at 8:47 PM, hadley wickham [EMAIL PROTECTED] wrote:
On Wed, Apr 23, 2008 at 7:31 PM, Mike Dugas [EMAIL PROTECTED] wrote:
Thanks for the help. That explains why my time testing showed
using this code in
scripts:
graphics.off()
windows(record = TRUE)
.SavedPlots - NULL
Not exactly the same thing, but it limits memory use.
Are there side effects that could bite me?
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
help me with this?
Take a look at help pages of the following functions: mean,
apply, abline.
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement
to find it.
The thread title was background color in scatterplots.
MHP
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
__
R-help@r
], vrefs2[i:(i-1)]),
c(rep(pdims[3],2), rep(pdims[4],2)), col = cols[i],
border = NA)
}
# Draw the reference lines, points, and box:
abline(v = vrefs)
points(a, b, lwd = 1.5)
box()
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise
Ayman,
It is difficult to say without seeing some code, but your output
seems to be not a list in the R sense but a collection of
vectors, each of length 1. The best way to put the values into a
vector probably is to assign them to the elements of the vector
during your computations.
Mike Prager
models. Psychometrika,
49, 37-47.
Regards,
Mike
--
-
Mike W.L. Cheung Phone: (65) 6516-3702
Department of Psychology Fax: (65) 6773-1843
National University of Singapore
http://courses.nus.edu.sg/course
if anyone could point me in the right
direction. ( I have no trouble writing my own simple latex code and
converting it to pdf using pdftex in miktex).
Thanks,
Mike Babyak
Department of Psychiatry and Behavioral Science
Duke University Medical Center
**
Here's the code
on the data set and
making it easier for humans to check the data file more easily.
Second, you could look at read.fortran() -- a function that
takes a lightly modified Fortran format specification as an
argument. That seems even better for your purposes than
read.fwf.
--
Mike Prager, NOAA, Beaufort
of
print.data.frame() be adopted as the
system version, but was politely declined.
Rolf--
Clearly, and appropriately, R development is not a democratic
process. Still, if a vote were held, I would support your
version. I have also needed to suppress row names from time to
time.
--
Mike Prager, NOAA
Hi all,
My initial searches on this yielded bupkis; I'm looking to access the
pixel-by-pixel data (preferably as a matrix, 0 for black, 1 for white)
of rendered letters(given a specific font, size, and dpi. Any
suggestions as to how to achieve this?
Mike
--
Mike Lawrence
Graduate Student
adjust i
because from what I understand, R creates 100 long vector and uses that
to loops thru and I'm not sure how to get at the index of that vector.
Any suggestions? Thanks in advance.
Mike Jones
Westat
1650 Research Blvd. RE401
Rockville, MD 20850
Ph: 240.314.2312
[[alternative
= 10
-Original Message-
From: Mike Jones
Sent: Thursday, December 27, 2007 4:35 PM
To: '[EMAIL PROTECTED]'
Subject: Conditionally incrementing a loop counter
Hi,
I am trying a for loop from 1 to 10 by 1. However, if a condition does
not get met, I want to throw
,garbage = ,garbage,\n)
}
-Original Message-
From: Peter Dalgaard [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 27, 2007 5:36 PM
To: Mike Jones
Cc: [EMAIL PROTECTED]
Subject: Re: [R] Conditionally incrementing a loop counter: Take 2
Mike Jones wrote:
My apologies for not including
term, while continuing to improve and maintain high standards.
We are rather early in the history of free software development
to know the answer.
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA
Edna Bell [EMAIL PROTECTED] wrote:
Hi R Gurus!
This is definitely off topic, but I thought I'd try: what is the way
to put in url's into a Latex file, please?
In future, you might want to post such questions in group
comp.text.tex
Mike
--
Mike Prager, NOAA, Beaufort, NC
* Opinions
, ...)
You might also be interested in the savePlot function, well
described in the R help files.
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement
Federico Calboli [EMAIL PROTECTED] wrote:
I would like to output the results of a function into a text file,
legible as a such. The function produces a summary quite like:
Take a look at the sink() function. Does that do what you need?
--
Mike Prager, NOAA, Beaufort, NC
* Opinions
basing reviews
around a specific topic/methodology would be more useful than basing
them around a single package.
I agree: Such articles would be welcome resources if published
either in JSS or in R-News.
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented
manual off the shelf or start up an online help file.
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA endorsement.
__
R-help@r-project.org mailing
as my R: I've
rummaged around the r-help archives and came up with nothing to show
for it.
Pointers would be gratefully received.
Many thanks.
--
Regards,
Mike Nielsen
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
made so far. Also, consider buying
or borrowing a copy of Introductory Statistics with R by Peter
Dalgaard. It is well written and brief.
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not represented otherwise.
* Any use of tradenames does not constitute a NOAA
Had a realization this morning that I think achieves ceiling
performance and thought I'd share with the list. I was previously
generating sample data per participant and then calculating a mean,
but of course this could be simplified by simply getting a single
value from the sampling
Posting this for posterity and to demonstrate that a speed-up of 2
orders of magnitude is indeed possible! I can now run 1e5 monte carlo
experiments in the time the old code could only run 1e3. The final
change was to replace my use of cor() with .Internal(cor()), which
avoids some checks
}
sim.r[i] = cor(a,b) #store the observed correlation between A and B
}
print(proc.time()[1]-start) #show the total time this took
--
Mike Lawrence
Graduate Student, Department of Psychology, Dalhousie University
Website: http://memetic.ca
Public calendar: http
Seems there were some line break issues when pasting the code, trying
again with a different commenting style:
#start a timer
start = proc.time()[1]
#set the true correllation
rho = .5
#set the number of Subjects
Ns = 100
#for each subject, set a number of observations in A
a.No = 1:100
#for
--
--
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
project.org] On
Behalf Of Mike Lawrence
Sent: Monday, October 01, 2007 1:29 AM
To: Rhelp
Subject: [R] optimize() stuck in local plateau
number of 'black boxes'). I do know
that the maximum must occur between -1 and 1 for all however. Please
advise on how I might use optimize more usefully.
Mike
--
Mike Lawrence
Graduate Student, Department of Psychology, Dalhousie University
Website: http://memetic.ca
Public calendar: http
I think the function you need is 'help.search'; try:
help.search(binomial)
and look for something obvious in the 'stats' package. A good deal quicker
and easier than posting to an internet forum!
Cheers, Mike.
cathelf wrote:
Dear all,
I am trying a find the value p in binomial.
X
801 - 834 of 834 matches
Mail list logo