Re: [R] problems editing R console

2015-06-07 Thread Bert Gunter
I believe that you need to learn to use a code editor/IDE. R is a programming language. See here: http://www.rstudio.com/ or here: http://www.sciviews.org/_rgui/ Otherwise, I also don't understand. Bert Gunter "Data is not information. Information is not knowledge. And kn

Re: [R] Different random intercepts but same random slope for groups

2015-06-09 Thread Bert Gunter
erstand the structure of her data. And only on r-sig-mixed-models -- crossposting is frowned upon here and the mixed models list is the best bet for this sort of question anyway. As always, corrections and criticism welcome. Cheers, Bert Bert Gunter "Data is not information. Informat

Re: [R] Problem with Volcanoplot

2015-06-11 Thread Bert Gunter
Start by going through an R tutorial or two? You need to do some minimal homework BEFORE posting here. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jun 11, 2015 at 8:05 AM, Pie

Re: [R] for loop incorrect row count

2015-06-11 Thread Bert Gunter
Oh, Swami, gazing into the crystal ball one can see ... ;-} Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jun 11, 2015 at 4:48 PM, David Winsemius wrote: > > On Jun 11, 2

Re: [R] Marascuilo procedure

2015-06-12 Thread Bert Gunter
If this matters -- i.e it is not merely a matter of homework or thesis work -- I suggest you speak with a local statistical expert, as your statistical understanding appears to be too confused to get much help from online forums. Cheers, Bert Bert Gunter "Data is not information. Informati

Re: [R] Two factor nonparametric test

2015-06-12 Thread Bert Gunter
google is your friend ... ?R nonparametric statistics (and the like) Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jun 12, 2015 at 2:34 AM, Ana Rodrigues wrote: > I'

Re: [R] Creating list with increasing string lengths

2015-06-13 Thread Bert Gunter
Is this homework? Homework is deprecated here. ?lapply is one of many possible approaches. If this is not homework, showing your unsuccessful code would likely lead to a better learning experience for you. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge

Re: [R] model selection

2015-06-16 Thread Bert Gunter
Wrong list! This is about R. Post on a statistics list like stats.stackexchange.com for statistics questions. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jun 15, 2015 at 3:55 PM,

Re: [R] problem with nlme, environments, and packages

2015-06-16 Thread Bert Gunter
things like myfun <- function( FUN = log,...) { ... something <- FUN(X) ... } Just in case this might be useful to you. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jun 15,

Re: [R] dplyr - counting a number of specific values in each column - for all columns at once

2015-06-16 Thread Bert Gunter
1L) a b g 5 4 0 Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Jun 16, 2015 at 10:24 AM, Dimitri Liakhovitski < dimitri.liakhovit...@gmail.com> wrote: > Hello

Re: [R] dplyr - counting a number of specific values in each column - for all columns at once

2015-06-16 Thread Bert Gunter
for others. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Jun 16, 2015 at 12:47 PM, Hadley Wickham wrote: > On Tue, Jun 16, 2015 at 12:24 PM, Dimitri Liakhovitski > wro

Re: [R] dplyr - counting a number of specific values in each column - for all columns at once

2015-06-16 Thread Bert Gunter
t the underlying engines, thereby gaining efficiencies that some folks may want as well as new syntax. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Jun 16, 2015 at 1:22 PM, David L

Re: [R] how to call rbind using arguments from a list

2015-06-17 Thread Bert Gunter
be a list of names, not character strings. This can be obtained using as.name(). This can all be effected by: a<-as.list(ls(pattern= "^Z.")) do.call(rbind,lapply(a,as.name)) -- and please post in plain text, not HTML, as HTML often gets mangled when reproduced on this plain text li

Re: [R] Replace values in a dataframe

2015-06-17 Thread Bert Gunter
5 Hazen5.0 1:5<5 Hazen2.5 1:6 5 Hazen5.0 Incidentally, if this is how you are attempting to deal with censored data, it may be a very bad idea. For why, consult a local statistician or post on a statistics list like stats.stackexchange.com Cheers, Bert Bert Gunter "

Re: [R] help for lay person assisting R user with disability

2015-06-18 Thread Bert Gunter
merely be a matter of reading in text files via R's native facilities (e.g. read.csv ) . A local resource can best help you sort out what would work best in your situation imho. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly

Re: [R] Sign of specific elements of a vector

2015-06-18 Thread Bert Gunter
Your **is** the "coolest" and most efficient way to do this. It's vectorized -- apply() stuff is not. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jun 18, 2015 at

Re: [R] sorting a dataframe

2015-06-21 Thread Bert Gunter
t <- dat[order(numbs),] > newdat A B 1 A1 1 4 A2 4 2 A10 2 3 A11 3 Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sat, Jun 20, 2015 at 6:29 PM, Diego Miro wrote: > Bogdan, &g

Re: [R] repeated measures: multiple comparisons with pairwise.t.test and multcomp disagree

2015-06-23 Thread Bert Gunter
d and fury, signifying nothing." (or, at least, what's being signaled depends exactly on what question is being asked, which is why this is a mess). Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Cli

Re: [R] set par options once for entire R session

2015-06-23 Thread Bert Gunter
open, new plots on it will reuse the same par() settings. See,e.g. ?plot.new. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Jun 23, 2015 at 8:54 AM, Martin Batholdy via R-help w

Re: [R] Call to a function

2015-06-23 Thread Bert Gunter
?with e.g. with(mydata,aaa(v1)) -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Jun 23, 2015 at 2:39 PM, Steven Yen wrote: > Dear Members > I have a data frame as generated bel

Re: [R] Combining estimates from multiple regressions

2015-06-24 Thread Bert Gunter
list like stats.stackexchange.com for statistics questions, which are off topic here. Further, when you post here, please read and follow the posting guide (below) and post in plain text, not HTML. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certa

Re: [R] repeated measures: multiple comparisons with pairwise.t.test and multcomp disagree

2015-06-24 Thread Bert Gunter
I would **strongly** recommend that you speak with a local statistical expert before proceeding further. Your obsession with statistical significance is very dangerous. (see the current issue of SIGNIFICANCE for some explanation). Cheers, Bert Bert Gunter "Data is not information. Informati

Re: [R] repeated measures: multiple comparisons with pairwise.t.test and multcomp disagree

2015-06-24 Thread Bert Gunter
respond privately. I will not comment further on list. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Jun 24, 2015 at 2:37 PM, Jeff Newmiller wrote: > Bert, can you be more speci

Re: [R] quantile of a discrete random variabel --- again

2015-06-25 Thread Bert Gunter
tor of quantiles . I leave that to others both cleverer and more motivated than I. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jun 25, 2015 at 8:59 AM, L... L... wrote: > I

Re: [R] extracting significant response variables

2015-06-26 Thread Bert Gunter
asked. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jun 25, 2015 at 11:09 PM, adeela uaf wrote: > Hi, > My experiment consist of factorial structure with 25 genotypes and 3 &

Re: [R] Error: unexpected symbol in [with read.table]

2015-06-26 Thread Bert Gunter
?? Are you expecting us to guess what your code was from "reading in a tab delimited file using args" ? You've posted here before and should know by now that explicit code should be provided whenever possible. Cheers, Bert Bert Gunter "Data is not information. Informat

Re: [R] Error: unexpected symbol in [with read.table]

2015-06-26 Thread Bert Gunter
... and you should also know by now to cc the list and not respond just to me! Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jun 26, 2015 at 10:58 AM, Kate Ignatius wrote: > "reading

Re: [R] correlation matricies: getting p-values?

2015-06-28 Thread Bert Gunter
?cor.test Please read Help files (for cor, which linked cor.test) before posting. And, as David says, post in plain text. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sat, Jun 27, 2015

Re: [R] Propagate errors with prediction interval

2015-06-28 Thread Bert Gunter
follow the list protocols and post in plain text, not HTML, please. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sun, Jun 28, 2015 at 9:40 AM, Shaunna Morrison wrote: > Hello! > &

Re: [R] Simulate multinomial data

2015-06-29 Thread Bert Gunter
Ye gods! R has a search function. Please learn to use it before posting here. ??multinomial Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jun 29, 2015 at 8:23 AM, Christop

Re: [R] Simulate multinomial data

2015-06-29 Thread Bert Gunter
... and presumably the probabilities for class memberships are given by your function of the explanatory variable. So you just plug in your (30?) values of x, no? -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -

Re: [R] How to specified contrasts in anova (lm)

2015-07-01 Thread Bert Gunter
of proceeding on your own. This is **NOT** about R and is off topic here. Also, if you do wish to post here on R questions in future, please follow the posting guide and post in plain text, not HTML. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And know

Re: [R] How to specified contrasts in anova (lm)

2015-07-01 Thread Bert Gunter
You do not set constraints in R you set contrasts. See the relevant sections of e.g. Venables and Ripley's MASS book. ?contrasts ## what else! ?C for details. Beyond this, I cannot help. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is

Re: [R] Lattice: set col = "black" for box.rectangle and box.umbrella

2015-07-02 Thread Bert Gunter
1. box.rectangle, etc. are not functions; they are (lists of) parameters that are sublists of the par.settings list. 2. Read the Help for simpleTheme() -- it has a specific list of parameters which is nothing like what you show. Cheers, Bert Bert Gunter "Data is not information. Informati

Re: [R] Lattice: set col = "black" for box.rectangle and box.umbrella

2015-07-02 Thread Bert Gunter
Let me rephrase my 2nd point: simpleTheme() has a specific list of **arguments** which is nothing like you show. As the Help says, its value is a list of parameter settings that can be used by par.settings. -- Bert Bert Gunter "Data is not information. Information is not knowledge

Re: [R] Removing rows in a data frame

2015-07-02 Thread Bert Gunter
?precedence -5:10 is (-5):10 -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 2, 2015 at 10:23 PM, Charles Thuo wrote: > I have a data frame whose rows are 678013 . I would li

Re: [R] lattice strip.custom function

2015-07-04 Thread Bert Gunter
my.df, strip = strip.custom(factor.levels=as.character(dist.names))) Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sat, Jul 4, 2015 at 6:53 PM, Naresh Gurbuxani wrote: > I would like to

Re: [R] Greek letters in column titles.

2015-07-05 Thread Bert Gunter
Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sun, Jul 5, 2015 at 1:37 PM, Ista Zahn wrote: > x = data.frame( β =1) > > seems to work fine for me. Perhaps you need to give some more details a

Re: [R] degrees of freedom (and hence p values) from lme and lmer don't agree . . . Why?????????

2015-07-07 Thread Bert Gunter
This is a **highly technical** statistical issue, not an R-Help topic. I strongly suggest that you post to the R-sig-mixed-models list instead. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stol

Re: [R] How to assign value to a variable dynamically constructed

2015-07-07 Thread Bert Gunter
Try reading the Help files before posting here. That's what they're for. ?get provides the answer in a note in the Help page. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On

Re: [R] R-project on App-V 5

2015-07-08 Thread Bert Gunter
http://cran.r-project.org/ and do not post further to this list, please. Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Jul 8, 2015 at 2:43 AM, Gilfred Tan wrote: > > Hi > >

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-09 Thread Bert Gunter
FALSE TRUE TRUE The idea is to paste the strings in each row (do.call allows an arbitrary number of columns) into a single string and then use strsplit to break the string into individual "words" on whitespace. Then the matching is vectorized with the any( %in% ... ) call. Cheers, Be

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-09 Thread Bert Gunter
ers to figure it out. Of course, if my diagnosis is wrong or silly, please point this out. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 9, 2015 at 9:34 AM, Jeff Newmiller wr

Re: [R] ca.jo function, urca package, singular matrix problem

2015-07-09 Thread Bert Gunter
"contrasts in R" for background and details. Also ?contrasts and the linked man pages in R. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 9, 2015 at 6:51 AM, mrrox wrot

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-09 Thread Bert Gunter
Yup, that does it. Let grep figure out what's a word rather than doing it manually. Forgot about "\b" Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 9, 2015 at

Re: [R] (no subject)

2015-07-10 Thread Bert Gunter
Sorry Lia. We don't do homework on this list. You can imagine how clogged it would be if we did. Maybe you'll get lucky and someone will answer you privately. Otherwise, seek help from your teachers, fellow students, and/or course homework forums. Cheers, Bert Bert Gunter &q

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-10 Thread Bert Gunter
ie reviews). So what one might want to do is add semantic analysis to searches, à la google, a topic way beyond the simple capabilities discussed, or likely needed, here. Incidentally, Jeff Newmiller's (final) regular expression solution is preferable to mine in all respects, I think. -- Ber

Re: [R] How to assign value to a variable dynamically constructed

2015-07-10 Thread Bert Gunter
sult web tutorials, John Chambers's books, and other books on R programming. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jul 10, 2015 at 9:44 AM, Bastien Tran wrote: > Dea

Re: [R] detecting any element in a vector of strings, appearing anywhere in any of several character variables in a dataframe

2015-07-11 Thread Bert Gunter
eff's. Note, however, that you have missed capital letters: "Red" would not match "This is red". Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jul 10, 2015 at

[R] Do grep() and strsplit() use different regex engines?

2015-07-11 Thread Bert Gunter
uot; "green" I would have thought that "\\b" should give what "\\W" did. Note that: > grep("\\bred\\b","red green") [1] 1 ## as expected Does strsplit use a different regex engine than grep()? Or more likely, what am I misunderstanding? Tha

Re: [R] Do grep() and strsplit() use different regex engines?

2015-07-11 Thread Bert Gunter
Thanks Jeff. That doesn't explain it for me. Could you go through the algorithm a step at a time to show why it splits at the individual characters rather than the words, perhaps privately. Feel free to refuse, as I'm sure you have better things to do. -- Bert Bert Gunter &q

Re: [R] Do grep() and strsplit() use different regex engines?

2015-07-11 Thread Bert Gunter
not really bugs -- and I would be frankly surprised if they were -- I would suggest that perhaps they deserve mention in the strsplit() man page. Something to the effect that "\b and \< should not be used as split characters..." . Bert Gunter "Data is not information. Informat

Re: [R] Do grep() and strsplit() use different regex engines?

2015-07-11 Thread Bert Gunter
omigosh -- you're right. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sat, Jul 11, 2015 at 3:31 PM, David Winsemius wrote: > > On Jul 11, 2015, at 3:07 PM, Bert Gunter w

Re: [R] Do grep() and strsplit() use different regex engines?

2015-07-11 Thread Bert Gunter
es to all for wasted bandwidth... Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sat, Jul 11, 2015 at 4:26 PM, Charles C. Berry wrote: > On Sat, 11 Jul 2015, Bert Gunter wrote: > >>

Re: [R] an error in nlme package

2015-07-13 Thread Bert Gunter
No, Sarah. na.action must be a function, not a character string. But you're close: there is no na.include function, as the message says. It should be na.exclude . Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly

Re: [R] Spline curve

2015-07-14 Thread Bert Gunter
e serious about this. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Sun, Jun 28, 2015 at 9:56 PM, DzR wrote: > I wish to fit spline curves to longitudinal data > > Which packag

Re: [R] sum some columns for each row

2015-07-14 Thread Bert Gunter
It seems that Dawn could really benefit from spending some time with an online R tutorial or two, as she appears not to have much of a clue about R's basic data structures. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly

Re: [R] Weighted skewness and curtosis

2015-07-16 Thread Bert Gunter
ly useless, but that's another, off topic, issue. Cheers, Bert Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 16, 2015 at 8:37 AM, Dimitri Liakhovitski wrote: > U

Re: [R] Weighted skewness and curtosis

2015-07-16 Thread Bert Gunter
er to what he sought, however. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 16, 2015 at 9:47 AM, David Winsemius wrote: > > On Jul 16, 2015, at 8:37 AM, Dimitri Liakho

Re: [R] NLOPTR

2015-07-16 Thread Bert Gunter
change the parameterization of and/or simplify your model before proceeding if that is the case. Although I would have thought you would have run up against some sort of maximum iterations limit... Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certa

Re: [R] powerTransform warning message?

2015-07-16 Thread Bert Gunter
I suggest you consult a local statistician. You are (way) over your head statistically here, and statistical matters are off topic on this list. The brief answer to your question is: you are almost certainly producing nonsense. Cheers, Bert Bert Gunter "Data is not information. Informati

Re: [R] OPTIMX: non-finite finite-difference value [26] and scaling problem

2015-07-18 Thread Bert Gunter
models, and the limitations of the data available. Note that these comments are of necessity largely speculative and would benefit greatly by amplification and criticism by real experts, of which I ain't one. So caveat emptor! (as usual on the internet). Best, Bert Bert Gunter "D

Re: [R] Why does dredge() rank models differently for lmer() and MCMCglmm()?

2015-07-18 Thread Bert Gunter
"truth." Ergo quite different looking models might fit essentially equally well, the differences in fits and therefore rankings being nothing more than noise. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom."

Re: [R] To simplify or not simplify?

2015-07-20 Thread Bert Gunter
Off topic . This list is about R programming. Post on a statistics list like stats.stackexchange.com instead. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jul 20, 2015

Re: [R] R: Re: Differences in output of lme() when introducing interactions

2015-07-20 Thread Bert Gunter
I believe Michael's point is that you need to STOP asking such questions and START either learning some statistics or work with someone who already knows some. You should not be doing such analyses on your own given your present state of statistical ignorance. Cheers, Bert Bert Gunter &qu

Re: [R] Kruskal Wallis and pos-hoc Kruskal Wallis

2015-07-21 Thread Bert Gunter
Yes you are missing something -- the underlying ideas of post hoc tests. This is a statistics issue, not an R issue, and so off topic here. Try posting on a statistics forum like stats.stackexchange.com instead. Cheers, Bert Bert Gunter "Data is not information. Information is not know

Re: [R] shift by one column given rows in a dataframe

2015-07-23 Thread Bert Gunter
Ah, so apparently you require some sort of psychic abilities... For how else would one choose which three values to keep in a row that was: a 2 b 5 based on your specification that "xxx could be anything." Cheers, Bert Bert Gunter "Data is not information. Information i

Re: [R] shift by one column given rows in a dataframe

2015-07-23 Thread Bert Gunter
Oops, Bill's reply and mine crossed in the email. His is essentially the same as mine except probably more efficient. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Jul 23,

Re: [R] Infinite Series

2015-07-24 Thread Bert Gunter
1.620244 1.625133 1.628406 1.630750 1.632512 1.633884 [10] 1.634984 But beware FAQ 7.31 for long series. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jul 24, 2015 at 4:37 PM, Janh A

Re: [R] "unfurling" rankings into a matrix of preferences

2015-07-27 Thread Bert Gunter
## I leave it to you to add the NA edges > rk <- c(2,4,3,1) > outer(rk,rk,"<")+0 [,1] [,2] [,3] [,4] [1,]0110 [2,]0000 [3,]0100 [4,]111 0 Cheers, Bert Bert Gunter "Data is not information. Inform

Re: [R] "unfurling" rankings into a matrix of preferences

2015-07-27 Thread Bert Gunter
No it wouldn't. Presumably you have a typo and meant rk <- c(2,4,3,1,NA) ## and set the (5,5) entry to 0 after -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jul 27, 2015 a

Re: [R] Segmented model

2015-07-27 Thread Bert Gunter
... Presumably the length of the segment ?? I leave it to the OP or others to look up the answer in their high school math texts. -- Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jul 27,

Re: [R] Segmented model

2015-07-27 Thread Bert Gunter
stats.stackexchange.com or consult a local statistical resource. These are not R issues and so are offtopic here. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Jul 27, 2015 at 10:49 PM, e

Re: [R] vectorized sub, gsub, grep, etc.

2015-07-29 Thread Bert Gunter
sting erroneous comments. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Jul 28, 2015 at 3:00 PM, John Thaden wrote: > Adam,The method you propose gives a different result t

Re: [R] Removing display of R row names from list.

2015-07-29 Thread Bert Gunter
ro to R" tutorial that ships with R). Then see the "row.names" argument of ?print.data.frame . Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Jul 29, 2015 at 8:11 A

Re: [R] Removing display of R row names from list.

2015-07-29 Thread Bert Gunter
Is this what you mean? z <- data.frame(a=1:3,b=letters[1:3],row.names=letters[1:3]) zlist <- list(one=z,too =z) for(i in 1:2){print(zlist[[i]],row.names=FALSE); cat("\n")} a b 1 a 2 b 3 c a b 1 a 2 b 3 c ... which could obviously be within a function. Cheers, Bert Be

Re: [R] Daily Category Revenue-Stacked Bar Chart in ggplot2

2015-07-29 Thread Bert Gunter
Below. Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Wed, Jul 29, 2015 at 3:43 PM, Hidden Markov Model wrote: > Alright thanks for clarifying. That's all a bit esoteric. Quite different

Re: [R] Shiny help with verbatimTextOutput

2015-07-30 Thread Bert Gunter
Shiny is not R. It is an RStudio product, which is separate from R. So I think you need to post on RStudio's support forum, not here. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll

Re: [R] Exclude 2014 data from mean

2015-07-31 Thread Bert Gunter
plain text, not HTML, as requested by the posting guide below. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Fri, Jul 31, 2015 at 11:49 AM, Adam Jauregui wrote: > Hello R-help, >

Re: [R] nested model and post hoc?

2015-08-05 Thread Bert Gunter
695.n4.nabble.com/nested-model-and-post-hoc-tp4710784.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and > more, see > https://stat.ethz.ch/mailman/listinfo/r-hel

Re: [R] Simulate skewed data if 2.5, 25th 50th and 75 centile are known

2015-08-05 Thread Bert Gunter
Hint: See below. On Wednesday, August 5, 2015, John Sorkin wrote: > Colleagues, > I need to simulate skewed data so I can run a sample size calculation. > > I know the 2.5th, 25th, 50th, and 75th centiles of the data (32, 43, 48, > 250). > > data <- matrix(c(75,250,50,48,25,43,2.5,32),nrow=4,nco

Re: [R] Knit R and Book Publishing

2015-08-06 Thread Bert Gunter
SE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-06 Thread Bert Gunter
> > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and > more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commente

Re: [R] testing whether two character vectors contain (the same) items in the same order

2015-08-06 Thread Bert Gunter
gt; > Cheers, > Boris > > > > > > On Aug 6, 2015, at 9:51 AM, Federico Calboli > wrote: > > >> > >> On 6 Aug 2015, at 15:40, Bert Gunter > wrote: > >> > >> Define "goodness of match" . For exact matches, see ?"==

Re: [R] compare grupos dichotomus dependent variable

2015-08-07 Thread Bert Gunter
d > more, see > 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, self-contained, reproducible code. -- Bert Gunter "Data is not information. Info

Re: [R] Unable to pass Object Arguments to UniRoot()

2015-08-10 Thread Bert Gunter
even bother to read such posts for that reason. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Aug 10, 2015 at 3:26 AM, Bazman76 wrote: > Hi there, > > I'd like to be

Re: [R] Plotting wind direction as arrows with precipitation

2015-08-11 Thread Bert Gunter
don't know for sure. There is also an arrows() function in the basic (non-grid) graphics engine, but this is probably irrelevant for your needs. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Cliffor

Re: [R] LMER - generate data and define model (2 fixed effects and 1 random effect or 1 fixed effect and 2 random effects)

2015-08-11 Thread Bert Gunter
You need to: 1) Re-read ?seq. Your syntax is wrong. ("," not ":" ) 2) Note that (n-1) x m != n x m Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Tue, Aug 11,

Re: [R] Crosstabulation with a frequency variable

2015-08-13 Thread Bert Gunter
Well, just using base R, ... > with(mydata,tapply(freq,list(var1,var2),I)) 0 1 0 11 12 1 13 14 Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Aug 13, 2015 at 6:39 AM,

Re: [R] Crosstabulation with a frequency variable

2015-08-13 Thread Bert Gunter
Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Aug 13, 2015 at 8:18 AM, peter dalgaard wrote: > >> On 13 Aug 2015, at 16:24 , Bert Gunter wrote: >> >> Well, just using base R

Re: [R] Error

2015-08-16 Thread Bert Gunter
What do you think "data" is in: rbind(data, read.csv(filename[id])) str(data) ## before running your function will show you that it is probably the built in function data() which is probably the source of your error. Cheers, Bert Bert Gunter "Data is not information. Inf

Re: [R] Text Pattern Recognition - Model

2015-08-17 Thread Bert Gunter
Wrong list. This list is about R, not about statistics/statistical learning. Post to a stats list like stats.stackexchange.com for methods issues. Once you figure out what you want to do, R almost certainly can do it -- search to find out what fuctions/packages to use. Cheers, Bert Bert Gunter

Re: [R] Survival Analysis and Predict time-to-death

2015-08-17 Thread Bert Gunter
t all this. And apologies if I have misunderstood. Cheers, Bert Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Mon, Aug 17, 2015 at 1:51 PM, David Winsemius wrote: > > On Aug 17, 2015, at 12

Re: [R] How to have NLME return when convergence not reached

2014-12-02 Thread Bert Gunter
?try Or ?tryCatch Bert Sent from my iPhone -- please excuse typos. > On Dec 2, 2014, at 12:57 PM, Ramiro Barrantes > wrote: > > Hello, > > I am trying to fit many hundreds of simulated datasets using NLME (it's all > in a big loop in R). Some don't seem to converge. I am working on > ad

Re: [R] How to have NLME return when convergence not reached

2014-12-02 Thread Bert Gunter
Yes, Bill almost always has helpful ideas. Just a comment: If indeed the process is gobbling up too much memory, that might indicate a problem with your function or implementation. I defer to real experts on this, however. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467

Re: [R] neighborhood competition index in r package

2014-12-07 Thread Bert Gunter
hy people don't make even a minimal search effort on their own and feel it necessary to ask for help here. It ain't rocket science! -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certain

Re: [R] metafor - code for analysing geometric means

2014-12-07 Thread Bert Gunter
While you may get a helpful reply, I think this is really not the forum for such relatively basic math/stat questions. As you seem to be more or less at sea here, I really really suggest that you seek help from a local statistical resource. Cheers, Bert Bert Gunter Genentech Nonclinical

Re: [R] Unmarked

2014-12-11 Thread Bert Gunter
Your query is incoherent, at least to me. If others are similarly flummoxed and you receive no useful reply, read and follow the posting guide (link below) to provide code, data, etc. for a minimal example to explain what you wish to do. In PLAIN TEXT -- no HTML. Cheers, Bert Bert Gunter

Re: [R] Getting a Error: unexpected symbol in:

2014-12-12 Thread Bert Gunter
aps reading an R tutorial (maybe "An Intro to R", which ships with R -- have you read it? If not, why not??) might also do. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not

Re: [R] Help specifying a non-linear model in nlsLM()

2014-12-16 Thread Bert Gunter
some help here (there are some pretty smart optimizers who monitor the list), I suggest you try a statistical site like stats.stackexchange.com for help, as this appears to be primarily a statistics issue, not an R programming one. Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650

<    3   4   5   6   7   8   9   10   11   12   >