Re: [R] Memory problem?

2008-01-31 Thread Jay Emerson
ption to this is Thomas Lumley's biglm package, which processes the data in chunks. We need more tools like these. Ultimately, you'll need to find some method of analysis that is pretty smart memory-wise, and this may not be easy. Best of luck, Jay - Original

Re: [R] R on a computer cluster

2008-02-17 Thread Jay Emerson
n the same computer). Both seem quite easy to use, essentially only needing one command to initiate the "cluster" and then one command to do something like apply() in parallel. It takes a little planning of your application, but the "painfully obvious" parallel problem should be pa

[R] Help with rpart.predict?

2008-07-16 Thread L. Jay Roberts
ize + UpLow + Plantation + Range, data = sites1pabuild) OVEN.pa <- predict(OVENrpart.pa, newdata = sites1patest) "L3", "Plantation", and "Range" are all character variables, the rest are numeric. Thanks! Jay [[alternative HTML version deleted]] ___

Re: [R] Writing Rcmdr Plugins

2008-08-20 Thread G. Jay Kerns
ps the best advice is to download the source code RcmdrPlugin.x.tar.gz from CRAN (e.g. RcmdrPlugin.IPSUR), extract the archive, and take a look at how other people have done it. I hope that this helps, and good luck! :-) Jay *** G. Jay Ker

Re: [R] Writing Rcmdr Plugins

2008-08-20 Thread G. Jay Kerns
...[snipped] > > The /inst directory: in here you will need to put a file "menus.txt" > This should have been "the /inst/etc" directory, as you noted in your original post. Jay __ R-help@r-project.org mailing list

Re: [R] faulty formatting of toLatex(sessionInfo())

2009-08-26 Thread G. Jay Kerns
t; Thank you > Liviu There was a closely related discussion last April: https://stat.ethz.ch/pipermail/r-devel/2009-April/053094.html and IIRC this was fixed for R version 2.10. Hope this helps, Jay -- ******* G. Jay Kerns, Ph.D. Associate Professor De

Re: [R] generating unordered combinations

2009-09-17 Thread G. Jay Kerns
solution: library(prob) urnsamples(0:2, size = 3, replace = TRUE, ordered = FALSE) Regards, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-0002 USA Office: 1035 C

Re: [R] Gamma parametrization

2010-03-19 Thread G. Jay Kerns
ave a 'scale' parameter at all. Just be careful, and you should be fine. And IMHO, given that the PDF of the density is shown it is reasonably clear as-is. Best, Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematic

Re: [R] Logistic regression and R

2009-07-30 Thread G. Jay Kerns
, you may want to check out Chapter 5 (and also some of 4). >and second, what could I > do when I have some independent variables that are not only numerical but > categorical too, i.e. mixed (categorical and numerical), can I still use a > logistic regression? Easy pea

Re: [R] How to calculate KMO?

2009-09-30 Thread G. Jay Kerns
7L, 4L, 2L), m7 = c(14L, 5L, 2L, 11L, 20L, 3L, 13L, 17L, 14L, 20L, 10L, 15L, 6L, 10L, 16L, 3L, 8L, 7L, 4L, 2L), m8 = c(12L, 15L, 4L, 11L, 18L, 3L, 12L, 16L, 14L, 20L, 9L, 12L, 16L, 10L, 17L, 3L, 18L, 9L, 7L, 3L)), .Names = c("m1", "m2", "m3", "m4", "m5&

Re: [R] Combinations and joint probabilities

2009-12-04 Thread G. Jay Kerns
the joint pmf xtabs(probs ~ Var1 + Var2, data = Probspace) # sorted by probability Probspace[order(Probspace$probs), ] See the prob package for other utilities in this vein. You can make the labels better with c("7 – 7.50", "7.50 – 8.50", "8.50 – 10.00"), etc, in the firs

Re: [R] Need help to forecasting the data of the time series .

2009-12-10 Thread G. Jay Kerns
; -- > Stephen Thanks for the brief response, Stephen; he has seen (most of) this before. Unbelievable. Jay *** G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown, OH 44555-

Re: [R] Starting with R and distributions graphics

2009-12-15 Thread G. Jay Kerns
"prob") # see section 8 ?rolldie ?addrv ?marginal Then turn off the computer, pick up a pencil, and solve the problems by hand. Wait a minute, maybe that should be step 1? Have fun, Jay *** G. Jay Kerns, Ph.D. Associate Professor D

Re: [R] Kumaraswamy distribution

2009-05-12 Thread G. Jay Kerns
> > Debbie > Check the CRAN Task View on Probability distributions: http://cran.r-project.org/web/views/Distributions.html and in particular, check out package VGAM. HTH, Jay __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/

[R] can you tell what .Random.seed *was*?

2009-05-14 Thread G. Jay Kerns
being able to figure it out in 2*10^68 years doesn't count, but within a couple months is acceptable.) 3) does the answer change if there is a remove(.Random.seed) command right before the save.image() command? Any thoughts would be appreciat

Re: [R] can you tell what .Random.seed *was*?

2009-05-14 Thread G. Jay Kerns
Dear Duncan, On Thu, May 14, 2009 at 4:39 PM, Duncan Murdoch wrote: > On 5/14/2009 3:36 PM, G. Jay Kerns wrote: >> Question: >> 1) can you tell me what my original set.seed() value was?  (I wouldn't >> be able to figure it out, but maybe someone can) > > The onl

Re: [R] can you tell what .Random.seed *was*?

2009-05-15 Thread G. Jay Kerns
nning of the .Rnw (but after the set.seed)... and did not distribute this information to the students... that would make it much harder, yes? Any ideas that are even better than this? Conceivably, some of my students will be searching these archives in the future; please feel free to res

Re: [R] R Books listing on R-Project

2009-05-27 Thread G. Jay Kerns
a in 2008 for the R-wiki: http://tolstoy.newcastle.edu.au/R/e5/devel/08/10/0481.html There were no responses and I ran out of time to continue working on it myself. If you are interested in proceeding along these lines then I have some more ideas and would be willing

Re: [R] R Books listing on R-Project

2009-05-27 Thread G. Jay Kerns
> > Jay: why not post your R-books how to on the wiki itself??? Because I thought that it would be better to write the instructions in R-wiki language that anybody could modify rather than post a PDF by me. Here is what I had in mind: http://wiki.r-project.org/rwiki/doku.

Re: [R] Odd Behavior Out of setdiff(...) - addition of duplicate entries is not identified

2009-05-29 Thread G. Jay Kerns
every possible variant of questions (and answers) about this, and you haven't said _exactly_ what you are looking for. In the absence of an already posted solution, please specify exactly what you want and I'll wager an R Ninja could dispatch it in moments. Regards, Jay ***

Re: [R] Odd Behavior Out of setdiff(...) - addition of duplicate entries is not identified

2009-05-29 Thread G. Jay Kerns
Jason, On Fri, May 29, 2009 at 5:58 PM, Jason Rupert wrote: > > Jay, > > > Thanks much for the reply.    I think you are right about the prob. > Unfortunately, I was not able to find the old emails I had discussing the use > of the more powerful setdiff that essentially i

Re: [R] setdiff bizarre (was: odd behavior out of setdiff)

2009-05-30 Thread G. Jay Kerns
Jason, (moved back to R-help) On Sat, May 30, 2009 at 3:30 PM, Jason Rupert wrote: > > Jay, > > > I really appreciate all your help help. > > I posted to Nabble an R file and input CSV files more accurately > demonstrating what I am seeing and the output I

Re: [R] How to set up a function for "Central Limit Theorem"

2009-03-23 Thread G. Jay Kerns
ions -> Continuous -> Exponential -> Sample... If you were wanting to normalize the row sums (or investigate the sampling distribution of some other statistic, for that matter) then check out the Sampling Distributions... menu in RcmdrPlugin.IPSUR. Good luck, Jay > Basically I need to p

Re: [R] problem with rgl package

2009-05-05 Thread G. Jay Kerns
; checking for X... no > configure: error: X11 not found but required, configure aborted. > ERROR: configuration failed for package 'rgl' > ** Removing '/usr/local/lib/R/site-library/rgl' > I had the same problem a few days ago, and followed the recommendations of t

Re: [R] Update problem? Rcmdr disappears, won't re-open

2010-02-02 Thread G. Jay Kerns
I will have to boot into Windows later this evening to investigate, but in the meantime you may want to post your sessionInfo(). I have run RcmdrPlugin.IPSUR on R-2.10.1, Windows XP, as recently as yesterday during class without any problems. Gotta go for now. Jay -- **

Re: [R] Update problem? Rcmdr disappears, won't re-open

2010-02-02 Thread G. Jay Kerns
done that because A) it confuses students and B) John went to nonzero trouble to make the "remove" capability functional; I think it's cool. I will think about it some more. Maybe there is a way to reorganize it to not confuse students and simultaneously avoid conflicts with other

Re: [R] R-help

2010-10-05 Thread G. Jay Kerns
like this using R is like shooting a squirrel with a ballistic missile. Not that there's anything wrong with that; I don't like squirrels. Cheers, Jay P.S. Just kidding. On Tue, Oct 5, 2010 at 12:06 PM, Greg Snow wrote: > I would do it like this: > > library(TeachingDemos) >

Re: [R] same random numbers in different sessions

2010-10-09 Thread G. Jay Kerns
t loading it? I ask because the vignette is built by making a special choice for set.seed, and the workspace that ships with the package might be interacting in an unexpected way. Please let me know if IPSUR is the culprit. Regards, Jay __ R-help@

Re: [R] Is there a regression surface demo?

2010-10-11 Thread G. Jay Kerns
, from the command line: library(Rcmdr) with(rock, scatter3d(area, peri, shape)) I hope that this helps, Jay __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/post

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread G. Jay Kerns
) You could also use copulas, but those depend on contributed packages (and you can read more about them on the CRAN Task View for probability distributions). Hope this helps, Jay __ G. Jay Kerns, Ph.D. Youngstown State University http://people.ysu.edu/~gkerns/

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread G. Jay Kerns
On Sat, Nov 6, 2010 at 8:22 PM, michael wrote: > Jay, > >   Yes I'm looking for unif(0,1) and your method works just fine. I > suppose your method should work for dimensions greater than 2, am I right? > > Michael > Yes, but it gets that much more tricky to spe

Re: [R] A question to get all possible combinations

2010-12-22 Thread G. Jay Kerns
you store all of those in a data frame A, say, then you can get all possible samples from df1 with something like apply(A, 2, function(x) df1[x])) The good news is that the result will also be a matrix. Each row will be a possible sample of size 6 from df1. Hope this helps, Jay P.S. Note th

[R] [R-pkgs] IPSUR-1.0 is on CRAN, plus update to RcmdrPlugin.IPSUR

2010-07-28 Thread G. Jay Kerns
aming scheme for menus is also updated to be consistent with the other plugins in particular, and naming conventions in general. Cheers, Jay P.S. If you are thinking to print parts of IPSUR yourself then I recommend the publisher-quality PDF linked from the Downloads secti

Re: [R] Introductory statistics and introduction to R

2010-07-28 Thread G. Jay Kerns
lly, it depends on what you mean by 'get through'.) > > Also, do you have other suggestions for texts, manuals, web sites, etc. that > would introduce statistics and R simultaneously? Have you seen this? http://rwiki.sciviews.org/doku.php?id=books:intrstat Good luck, Jay

Re: [R] choose.dir() gone?

2010-09-08 Thread G. Jay Kerns
anks, Joh > [snip] Have a look at tk_choose.files in the tcltk package. library(tcltk) ?tk_choose.files Good luck, Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Youngstown,

Re: [R] How to calculate KMO?

2011-04-12 Thread G. Jay Kerns
Dear Thibault, On Tue, Apr 12, 2011 at 5:06 PM, Thibault Grava wrote: > Hello Jay, > > I know that an old post but I really need to calculate KMO for my data and > this is the only thread I found on the subject. > > I'm a very newby to R so sorry for the odd questions. &g

Re: [R] Rcmdr Plugin error

2011-06-17 Thread G. Jay Kerns
ectly, the same thing happened to me when my Plugin removed a menu which was used (that is, added to) by some other Plugin (in particular, RcmdrPlugin.IPSUR deleted a menu to which RcmdrPlugin.HH added a submenu.) The solution in my case was "don't do that". Can't really

[R] r data structures

2012-08-16 Thread Schumacher, Jay S
hi, i'm trying to understand r data structures. i see that vectors, matrix, factors and arrays have a "dimension." there seems to be no mention of dimensionality anywhere for lists or dataframes. can i consider lists and frames to be of fixed dimension 2?

Re: [R] r data structures

2012-08-16 Thread Schumacher, Jay S
s.htm - On Aug 16, 2012, at 11:49 AM, Schumacher, Jay S wrote: > > > hi, > i'm trying to understand r data structures. i see that vectors, > matrix, factors and arrays have a "dimension." > there seems to be no

Re: [R] r data structures

2012-08-16 Thread Schumacher, Jay S
quire as to the length of a list, so might, if forced to, admit that lists have one dimension, length. But I do not think it is helpful to think of lists as having dimension. Certainly, lists do not have two dimensions. -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627

Re: [R] R report generator (for Word)?

2012-01-01 Thread G. Jay Kerns
quot;, such as TODO lists, agendas, capturing-archiving, calendar integration, time tracking,...  These could possibly address some of the other issues you mentioned. Good luck, and Happy New Year.Jay ********* G. Jay Kerns, Ph.D. Mathematics and Statistics Youngstown Stat

Re: [R] SLLN for loggamma fails for 2 order moments

2008-06-14 Thread G. Jay Kerns
rlgamma in the actuar package are correct. There may be other people who can identify numerical issues that slow down the convergence rate even more. Best, Jay P.S. the MGF of gamma is all you need for the moments of loggamma... E(X^k) = (1 - k / 2.6)^(-25) On Sat, Jun 14, 2008 at 4:54 AM, mich

Re: [R] Multiset Permutations

2008-04-06 Thread G. Jay Kerns
you need the columns collapsed, then you can use the apply(B, 1, paste, sep = "", collapse = "") command that Johannes suggested. Details are in the prob package vignette, vignette("prob") I hope that this helps, Jay * fix: As it happens, your particular q

Re: [R] number of count of each unique row

2007-12-22 Thread G. Jay Kerns
list(D), FUN = sum) The output will be a data frame with the unique rows, and a column at the end labeled "x" with the frequency of each unique row. Once you get this you can convert to a list, manipulate, etc. I am sure that there exist faster/better methods. Best, Jay On Dec 21, 200

[R] [R-pkgs] prob package: elementary probability on finite sample spaces

2008-01-10 Thread G. Jay Kerns
comments are welcomed. I would appreciate hearing about your experiences with it in the classroom and elsewhere. The audience for this package would include teachers and students of elementary probability, or simply anyone wanting to dabble with p

Re: [R] Looking for simpler solution to probabilistic question

2008-01-15 Thread G. Jay Kerns
n assumption of independence between X1 and X2. Otherwise, you would seem to need to know the joint distribution of X1 and X2, which isn't mentioned in your problem description. Is there additional information about the problem that would suggest adding p2 rather than multiplying? I hope this help

Re: [R] Plot qnorm

2008-09-11 Thread G. Jay Kerns
le functions. After installing Rcdmr and RcmdrPlugin.IPSUR (version >= 0.1-5), do library(RcmdrPlugin.IPSUR) and after the Commander restarts take a look at the "Distributions" menu. You can plot any of the above. In addition, you will have

Re: [R] Bivariate normal

2008-10-01 Thread G. Jay Kerns
uld simply be P( X < x | Y=y ) * f(y), where f(y) is the marginal pdf of Y (a dnorm). Note that the above is assuming that y is a fixed constant; if not, then you may want to check out the Ryacas package. I hope that this helps, Jay ***

Re: [R] Bivarite Weibull Distribution

2009-01-04 Thread G. Jay Kerns
the inverse CDF approach, one can generate bivariate samples that have any given marginal distribution. See Nelson for details. Best, Jay > > thanks > A.S. Qureshi > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/m

Re: [R] setdiff for data.frames?

2009-03-12 Thread G. Jay Kerns
nzi.psych.upenn.edu/R/R-devel/archive/26683.html and as a consequence of that discussion: library(prob) setdiff(A,B) Best, Jay ******* G. Jay Kerns, Ph.D. Associate Professor Department of Mathematics & Statistics Youngstown State University Y

Re: [R] (Small) problem with barchart

2008-02-03 Thread G. Jay Kerns
Dear Kimmo, It doesn't appear that anyone has yet mentioned pareto.chart() in the qcc package; it may serve your purposes. Please note that it does not require the data frame to be ordered beforehand. x <- DATA[[2]] names(x) <- DATA[[1]] library(qcc) pareto.chart(x) Best wishes, Ja

[R] how to test for the empty set

2008-11-24 Thread G. Jay Kerns
but am I missing something? and in particular, is there an elegant way to check in the case that the mode of the vector is not already known? Thanks in advance for any insight you may have. Best, Jay ******* G. Jay Kerns, Ph.D. Associate Pro

Re: [R] how to test for the empty set

2008-11-24 Thread G. Jay Kerns
Dear Steven, > length(x) > Does this cover all your use > cases? Yes, and thanks again to everybody else who later replied. I had falsely imagined something so much more complicated...!? Next time, I will wait 8*runif(1) before posting. :-) Best, Jay > HTH > &g

Re: [R] how to test for the empty set

2008-11-24 Thread G. Jay Kerns
Dear Everybody, Thanks, length() is the answer. Best, Jay On Mon, Nov 24, 2008 at 1:15 PM, Ted Harding <[EMAIL PROTECTED]> wrote: > On 24-Nov-08 17:41:25, G. Jay Kerns wrote: >> Dear R-help, >> I first thought that the empty set (for a vector) would be NULL. >> >

Re: [R] Create unique sets of 3 from a vector of IDs?

2008-12-02 Thread G. Jay Kerns
; I need to generate a matrix that looks like this: >> A B C >> A B D >> A B E >> A C B >> A C D >> A C E >> A D B >> A D C >> A D E > > Hi, > > Does this do what you want? > > expand.grid(letter

Re: [R] Create unique sets of 3 from a vector of IDs?

2008-12-02 Thread G. Jay Kerns
Dear Kingsford, You are quite right, my mistake: urnsamples(ID, size = 3, replace = FALSE, ordered = TRUE) Thanks. Jay On Wed, Dec 3, 2008 at 12:04 AM, Kingsford Jones <[EMAIL PROTECTED]> wrote: > However, I believe Brandon was trying to get the permutations of size > 3,

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread G. Jay Kerns
s approach to > a variable number of arguments to expand.grid. > > Hope this helps, > > baptiste > Here is another way: library(prob) urnsamples(1:3, size = 2, ordered = FALSE, replace = TRUE) You can convert to a matrix with as.matrix(), if desired. Regards, Jay -- ***

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread G. Jay Kerns
ve in mind, it may be useful to think carefully about _why_ it is desired to have all possible combinations. In some circumstances, it is good enough to randomly generate combinations and draw inferences from a sampling distribution of some sort associated wi

Re: [R] generate combination multiset (set with repetition)

2008-12-11 Thread G. Jay Kerns
"prob" argument accordingly. > And what # of > combinations should I use as the cutoff for doing a sampling instead > of testing every possible combination? There isn't a definitive answer to that question. Assuming that it is desired to find an 'average

Re: [R] power calculation for repeated measures ANOVA?

2007-09-16 Thread G. Jay Kerns
G*Power 3 is free software for Mac and PC, see http://www.psycho.uni-duesseldorf.de/abteilungen/aap/gpower3/ Jay On 9/16/07, MATTHEW BRIDGMAN <[EMAIL PROTECTED]> wrote: > Is there a way to calculate power for repeated > measures ANOVA (2 groups x 7 observations)? I have > searche

Re: [R] analytical solution to Sum of binominal distributed random numbers?

2007-10-24 Thread G. Jay Kerns
Hi Rainer, The distr package can calculate the distribution for you: library(distr) X <- Binom(size = 7, prob = 0.3) Y <- Binom(size = 11, prob = 0.5) Z <- X + Y d(Z)( 0:18 ) # the pmf r(Z)( n = 5 ) # random variates Please note, however, that size and prob must be of length 1. Best

[R] car::linearHypothesis Sum of Sqaures Error?

2012-10-09 Thread John Jay Wiley Jr.
I am working with a RCB 2x2x3 ANCOVA, and I have noticed a difference in the calculation of sum of squares in a Type III calculation. Anova output is a follows: > Anova(aov(MSOIL~Forest+Burn*Thin*Moisture+ROCK,data=env3l),type=3) Anova Table (Type III tests) Response: MSOIL

Re: [R] car::linearHypothesis Sum of Sqaures Error?

2012-10-09 Thread John Jay Wiley Jr.
el,"cB vs. A&C") linearHypothesis(model,"cA vs. C") #Sum of squares of the individual contrasts do not add to the main effect of c John J. Wiley, Jr. PhD Candidate State University of New York College of Environmental Science and Forestry Department of Environmenta

Re: [R] car::linearHypothesis Sum of Sqaures Error?

2012-10-09 Thread John Jay Wiley Jr.
variances are similar. Is there another metric I am missing for a continuous covariate? Cheers, John From: John Fox [j...@mcmaster.ca] Sent: Tuesday, October 09, 2012 2:59 PM To: John Jay Wiley Jr. Cc: r-help@r-project.org Subject: RE: [R] car::linearHypo

Re: [R] car::linearHypothesis Sum of Sqaures Error?

2012-10-09 Thread John Jay Wiley Jr.
: Tuesday, October 09, 2012 4:00 PM To: John Jay Wiley Jr. Cc: r-help@r-project.org Subject: RE: [R] car::linearHypothesis Sum of Sqaures Error? Dear John, > -Original Message- > From: John Jay Wiley Jr. [mailto:jwile...@syr.edu] > Sent: Tuesday, October 09, 2012 3:37 PM > To: J

[R] R library highcharter function highchart() execute with exception the apparmor read denied for /etc/passwd and /etc/group

2023-08-08 Thread Gu, Jay via R-help
like to know if there is any solution to fix it without giving the read access for these two files /etc/passwd and /etc/group in the apparmor profile as I did with ubuntu 18.04 and R 3.6.3. Thanks! Best Regards! Jay Gu [[alternative HTML version deleted]] __

Re: [R] R library highcharter function highchart() execute with exception the apparmor read denied for /etc/passwd and /etc/group

2023-08-09 Thread Gu, Jay via R-help
Hi Ivan, I'm running the R within docker container. Do you have any idea about it? Thanks! Best Regards! Jay Gu -Original Message- From: Ivan Krylov Sent: Wednesday, August 9, 2023 3:15 AM To: Gu, Jay via R-help Cc: Gu, Jay Subject: Re: [R] R library highcharter function high

<    1   2