Re: [R] What don't I understand about sample()?

2025-03-13 Thread Greg Snow
t trying to get > more out of the class by also solving our problems using R, for which > I'm not receiving any class credit. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the p

Re: [R] What is the HEX code for "transparent" color?

2024-06-06 Thread Greg Snow
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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org mailing li

Re: [R] save(), load(), saveRDS(), and readRDS()

2023-10-02 Thread Greg Snow
; > [[alternative HTML version deleted]] > > __ > 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

Re: [R] Book Recommendation

2023-08-30 Thread Greg Snow
@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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.

Re: [R] reference generated var name in loop

2023-05-26 Thread Greg Snow
et of user-specified variables, which I can reference in some > fashion using a permuted version of the original variable name. > > Suggestions? > > Many thanks... > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, se

[R] sample size for beta regression

2023-05-19 Thread greg holly
Hi all, Does anyone have experience estimating the sample size for beta regression? I have three treatment groups with 0.6, 0.5 and 0.3 mean of proportions. I tried use BetaPASS but failed, Regards, Greg [[alternative HTML version deleted

Re: [R] suprising behaviour of tryCatch()

2023-05-18 Thread Greg Snow
ersion deleted]] > > __ > 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] Split String in regex while Keeping Delimiter

2023-04-13 Thread Greg Snow
s into an en dash, which makes it slightly harder to work with your > code, since typographically correct Unicode quotes are not R string > delimiters. Is it really – that you'd like to split upon, or is it -? > > __ > R-help@r-project.org m

Re: [R] Trying to learn how to write an "advanced" function

2023-03-16 Thread Greg Snow
guide.html&data=05%7C01%7CJSorkin%40som.umaryland.edu%7C8e0b6e6627474ceceed608db261ca383%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638145676673285449%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=eByabBUy5c7zdefrSSq3xbgjM

Re: [R] Trying to learn how to write an "advanced" function

2023-03-16 Thread Greg Snow
ot;, "data", "subset", "weights", "na.action", > "offset"), names(mf), 0L) > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/

Re: [R] function doesn't exists but still runs.....

2023-01-20 Thread Greg Snow
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCR

Re: [R] Pipe operator

2023-01-03 Thread Greg Snow
g in the 1960s the only pipe one spoke about was a > bong. > > John > > __ > 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

Re: [R] error in exists.....

2022-12-27 Thread Greg Snow
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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-pr

Re: [R] extract from a list of lists

2022-12-27 Thread Greg Snow
UBSCRIBE 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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __

Re: [R] extract from a list of lists

2022-12-27 Thread Greg Snow
BSCRIBE 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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com

Re: [R] Sensitivity and Specificity

2022-10-25 Thread greg holly
Hi Micheal, Rui, Jin and Matthias, I appreciate your time and help. The problem has been solved with your guides. Kind regards, Greg. On Tue, Oct 25, 2022 at 12:11 AM Prof. Dr. Matthias Kohl < matthias.k...@stamats.de> wrote: > MKclass::perfMeasures(predict_testing, truth = testing$case

Re: [R] Sensitivity and Specificity

2022-10-24 Thread greg holly
THanks Michael for this.This is much appreciated. So, how can I estimate the sensitivity and specificity after having the prediction on testing data. Any thoughts? Kind regards, Greg On Mon, Oct 24, 2022 at 12:10 PM Michael Dewey wrote: > So predict is a one-dimensional vector

Re: [R] Sensitivity and Specificity

2022-10-24 Thread greg holly
seeing what output you expected and what > error message you got if any but did you mean to summarise your variable > predict before doing anything with it? > > Michael > > On 24/10/2022 16:17, greg holly wrote: > > Hi all R-Help , > > > > After partitioning my

[R] Sensitivity and Specificity

2022-10-24 Thread greg holly
Hi all R-Help , After partitioning my data to testing and training (please see below), I need to estimate the Sensitivity and Specificity. I failed. It would be appropriate to get your help. Best regards, Greg inTrain <- createDataPartition(y=data$case, p=

Re: [R] bu.test

2022-06-26 Thread Greg Minshall
Nick, when i try to read the plain text version of your e-mail, it seems messed up. maybe you'll get an answer even so, but you might think of re-formatting and re-sending. cheers, Greg Nick Wray wrote: > Hello I was trying to run this short code > > data <https:

Re: [R] ggplot2

2022-04-05 Thread Greg Minshall
t doesn't depend on any other package, that can't be installed. then, try to figure out the error messages. again, in this case, things will hopefully work once you install the compiler and other development tools. cheers and good luck, Greg ___

Re: [R] plain passwords in reminder mail

2022-03-01 Thread Greg Minshall
Eduard, > The list membership reminder mail includes a plain password! this is very typical for, at least, mailman-supported, e-mail lists. the password is of low intrinsic value, as it only allows you to change your membership and options on the list. cheers, G

[R] write out a complete GAM fitted model equation, using parameter estimates

2021-12-16 Thread greg holly
Hi all, I have the following results from a study. I ran this model for binary distributed outcome log(event/non_event). I need to write out a complete GAM fitted model equation, using parameter estimates given below. I have difficulty putting the parameter estimates of Spline part in the fitted m

Re: [R] checkpointing

2021-12-13 Thread Greg Minshall
ention. :) cheers, Greg __ 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 commented, minimal, self-cont

Re: [R] checkpointing

2021-12-13 Thread Greg Minshall
Jeff, > This sounds like an OS feature, not an R feature... certainly not a > portable R feature. i'm not arguing for it, but this seems to me like something that could be a language feature. cheers, Greg __ R-help@r-project.org mailing

Re: [R] Translation of the charter

2021-11-02 Thread Greg Minshall
hi, Heinz, > You are right - match seems obviously better, but why not do > > x <- c("a","b","c") > match(x, letters[]) no, really, i wasn't sure of the requirements! cheers, Greg __ R-help@r-projec

Re: [R] Translation of the charter

2021-11-02 Thread Greg Minshall
Heinz, > x <- c("a","b","c") > lettersnum <- 1:length(letters[]) > names(lettersnum) <- letters[] > lettersnum[x] > > lettersnum[x] > a b c > 1 2 3 i'm not sure if the following is obviously better, but one might do ---- &

Re: [R] Need help in R

2021-10-26 Thread Greg Minshall
Bert, > findprm <- function(n){ >nn <- seq.int(2, n) >i <- 2 >while(i <= floor(sqrt( n))){ > nn <- nn[(nn <= i) | (nn %% i > 0)] > i <- nn[nn > i][1] >} >nn > } +1 -- thanks! __ R-help@r-project.org mailing list -- To UN

Re: [R] assumptions about how things are done

2021-10-10 Thread Greg Minshall
gt; } > > Why is it so hard to understand that there is nothing special to > understand here? i wonder if possibly because features like non-standard evaluation lead many of us to conclude there may/should/could be magic at all levels? cheers, Greg ___

Re: [R] on thread hijacking

2021-09-29 Thread Greg Minshall
der from the e-mail headers in my reply (my e-mail reader generated this header when i hit "reply" on your e-mail): > In-reply-to: Your message of "Wed, 29 Sep 2021 22:24:41 -0400." > <008401d7b5a2$53594e10$fa0bea30$@gm

Re: [R] How to globally convert NaN to NA in dataframe?

2021-09-04 Thread Greg Minshall
Duncan, > x[] <- lapply(...) says "set the values in x to the values in the list > on the RHS", so x retains its class. thanks! cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch

Re: [R] How to globally convert NaN to NA in dataframe?

2021-09-02 Thread Greg Minshall
ine is exposed. i wonder, can you explain why the two are different? is it because of (or, "is the clue...") this in the "Value:" section of : ?"[<-.data.frame" For '[<-', '[[<-' and '$<-', a data frame. ? chee

Re: [R] A glitch (???) in tools::texi2pf.

2021-08-31 Thread Greg Minshall
by the way, and "fwiw", the emacs org mode community seems to like using latexmk for moving latex files towards .pdf'ishness: https://mg.readthedocs.io/latexmk.html cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIB

Re: [R] Find "undirected" duplicates in a tibble

2021-08-21 Thread Greg Minshall
Bert, > Turns out that there's an even faster alternative. hah, but i'm *not* surprised. thanks for sharing the (current) low-price leader! and, thanks, again, to Kimmo for posting such a productive question! cheers, Greg my apply user system elapsed 8.465 0.103

Re: [R] Find "undirected" duplicates in a tibble

2021-08-20 Thread Greg Minshall
ric Berger's transmuting tibble... user system elapsed 0.986 0.000 0.988 Kimmo Elo's [OP] mutating paste user system elapsed 52.079 0.000 52.136 Rui Barradas' sort-based user system elapsed 42.327 0.080 42.450 cheers, Greg n <- 1000 x

Re: [R] Find "undirected" duplicates in a tibble

2021-08-20 Thread Greg Minshall
ep(1,3),rep(2,3),rep(3,3),rep(4,3))) y <- apply(x, 1, function(y) return (c(A=min(y), B=max(y unique(t(y)) cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] Find "undirected" duplicates in a tibble

2021-08-20 Thread Greg Minshall
n in unique(y["n",])) { unique(y["x",y["n",]==n]) res <- rbind(res, data.frame(A=c(n), B=unique(y["x",y["n",]==n]))) } res thanks for the question! cheers, Greg __ R-help@

Re: [R] Calculation of Age heaping

2021-08-09 Thread Greg Minshall
you are trying to learn R, and/or learn programming, i might suggest you *not* use a package, and rather work on coding up the calculation yourself. that would probably be a good, but not too hard, exercise, of some interest. enjoy! cheers, Greg __ R

Re: [R] problem for strsplit function

2021-07-09 Thread Greg Minshall
rns a single column as a non-vector. again, a second indexing with double '[[]]' can produce a vector. > DP <- tibble(DT) > is.vector(DP[, "x2"]) [1] FALSE > is.vector(DP[, "x2"][[1]]) [1] TRUE but, note that a list of lists is als

Re: [R] problem for strsplit function

2021-07-07 Thread Greg Minshall
> sub( "\\.[^.]*$", "", fname ) fwiw, i almost always use '[.]' in preference to '.', as it seems to be more likely to get through the various levels of quoting in different contexts. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and mo

Re: [R] Joining data frames

2021-06-29 Thread Greg Minshall
hi. i would suggest re-formatting your message as plain text (not HTML), and re-sending it. this list strips out HTML content, and the plain text version you sent is close to illegible. cheers, Greg __ R-help@r-project.org mailing list -- To

Re: [R] interactively getting alist of functions for a given package?

2021-06-24 Thread Greg Minshall
Jake and Deepayan, both very nice and useful solutions. thank you. Greg __ 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

Re: [R] interactively getting alist of functions for a given package?

2021-06-24 Thread Greg Minshall
and line R on linux. i tried setting `rc.setting(fuzzy=TRUE, func=TRUE, ipck=TRUE)`, but `data.table::set` still only shows names that start with "set". Bert's `ls` answer works, but did you have an idea of how else this might be made to work with rcompgen? cheers, Greg ___

Re: [R] interactively getting alist of functions for a given package?

2021-06-23 Thread Greg Minshall
Bert, > ?ls and note the "pattern" argument. ... > ls("package:base", pat =".*set.*") awesome -- thanks! cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/ma

[R] interactively getting alist of functions for a given package?

2021-06-23 Thread Greg Minshall
ist of routines by typing "data.table::set" to get a list of completions. but, what if i know the name *contains*, but doesn't start with, "set"? is there an obvious way to find this? something like the unix-y : ls /bin | grep -i "set" ? cheers, Greg ___

Re: [R] most stable way to output text layout

2021-06-12 Thread Greg Minshall
Jeremie, i'm not totally sure i understand your desire. but, does this help? mx <- max(nchar(mat), na.rm=TRUE) apply( mat,1, function(x) { x[is.na(x)] <-"" cat(sprintf("%*s", mx, x), "\n") }) cheers, Greg ___

Re: [R] Beginner problem - using mod function to print odd numbers

2021-06-08 Thread Greg Minshall
you find it simpler, and the performance acceptable, you could do a 'for' loop like this...". (though, as this is all volunteer effort, one obviously takes what one gets.) but, i do think that helping newer users understand how to write efficient code is important. anyway, just my

Re: [R] Need help to fix the max date filter problem in the date input

2021-06-08 Thread Greg Minshall
rices, etc.) needed for the example. some of this is described in the posting guide https://www.r-project.org/posting-guide.html formatting your e-mail in this way will likely increase your odds of a helpful reply. cheers, Greg __ R-h

Re: [R] Converting data from weekly interval to daily interval

2021-06-08 Thread Greg Minshall
n't* want, but maybe more idiomatically.) cheers, Greg __ 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 pr

Re: [R] Can I use group_map to iteratively process a dataframe?

2021-06-04 Thread Greg Minshall
t;% group_map, epi_analysis, the_dir) or some such? hth. cheers, Greg __ 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-g

Re: [R] Fwd: Create new polygon from a polygon

2021-04-22 Thread Greg Minshall
Javad, you might think of asking in the r-sig-geo e-mail list? : r-sig-...@r-project.org cheers. __ 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://w

Re: [R] Assigning several lists to variables whose names are contained in other variables

2021-04-09 Thread Greg Minshall
ean something like : assign(paste("subnet_",  val, sep = ""), my_function(val)) (which i would think should work)? cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

Re: [R] local maxima positions in a vector with duplicated values

2021-03-29 Thread Greg Minshall
Stefano, i notice that my and Bill's (pretty much isomorphic) solutions give a zero-length vector. i don't remember Bert's, but it's probably gives similar results. your code could check for that result, and react accordingly. cheers, Greg _

Re: [R] How to average minutes per hour per month in the form of '# hours #minutes'

2021-03-27 Thread Greg Minshall
would be, obviously, a bit of an approximation. but, it's not clear exactly how exact the insurance company wants. cheers, Greg __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLE

Re: [R] local maxima positions in a vector with duplicated values

2021-03-27 Thread Greg Minshall
le problem, actually. cheers, Greg __ 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 commented, min

Re: [R] How to average minutes per hour per month in the form of '# hours #minutes'

2021-03-25 Thread Greg Snow
; > greetings, el > > __ > 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 comm

Re: [R] Difficulty using the tryCatch() function

2021-02-08 Thread Greg Minshall
try removing the outermost '{'...'}'. e.g., { warning = ... } should be 'warning = ...'. Adn <- function(x,y) { out <- tryCatch( { x+y }, warning = function(cond) { message("There was a warning.") message("Here is the original warning message:")

Re: [R] Bootstrap P-Value

2020-11-06 Thread Greg Snow
[1] 0.4835165 > > ______ > > > *AbouEl-Makarim Aboueissa, PhD* > > *Professor, Statistics and Data Science* > *Graduate Coordinator* > > *Department of Mathematics and Statistics* > *University of Southern Maine* > > [[alternative HTML

Re: [R] which() vs. just logical selection in df

2020-10-12 Thread Greg Snow
know why this is? > > Cheers! > Keith > > __ > 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/pos

Re: [R] stacked bar on single-color printing

2020-08-13 Thread Greg Snow
BE 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 commented, minimal, self-contained, reproducible code. > > > > > > >

Re: [R] Question about PERL lookahead construct in regex's

2020-08-11 Thread Greg Snow
_____ > 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 commented, minimal, self-contained, reproducible code. -- Gregory

Re: [R] Add a logo on a plot

2020-08-11 Thread Greg Snow
sting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Mathematical working procedure of duplicated() function in r

2020-08-04 Thread Greg Snow
stinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.

Re: [R] Help about extracting data

2020-06-10 Thread Greg Snow
guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] How to make a vector with string elements without space

2020-05-24 Thread Greg Snow
stinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org mailing l

Re: [R] Bayesian estimation with MCMC

2020-05-24 Thread Greg Snow
nfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org maili

Re: [R] My dream ...

2020-05-12 Thread Greg Snow
mes > > Also, I found the following while searching for battle chess: > https://youtu.be/hBNG7444lOw > > (Warning: Contains aggressive chess tactics). > > Also, correct me if I'm wrong, but doesn't Emacs have historical > connecti

Re: [R] My dream ...

2020-05-11 Thread Greg Snow
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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com

Re: [R] ncol() vs. length() on data.frames

2020-04-03 Thread Greg Snow
> 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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L

[R] Error: cannot allocate vector of size 6.5 Gb

2020-02-22 Thread greg holly
Dear R-Help members; I have the following error messages when I would like to create training and testing data for Random Forest. Your help is highly appreciated. Regards, Greg inTrain <- createDataPartition(a, p = 0.7, list = FALSE) Error: cannot allocate vector of size 6.5

Re: [R] giving priority to stats package

2019-11-26 Thread Greg Snow
ge:stats", search()) + 1) > > On Mon, Nov 25, 2019 at 1:27 PM Greg Snow <538...@gmail.com> wrote: > > > > You could use the `pos` arg to place the newly loaded package(s) on > > the search path after the stats package. That would give priority for > > any fu

Re: [R] giving priority to stats package

2019-11-25 Thread Greg Snow
t; 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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R

Re: [R] problem in WRS2

2019-11-07 Thread greg holly
Thanks, William. After converting Grup into the factor, I got the results. Thanks, everyone to spend time to give their help. Regards, Greg On Thu, Nov 7, 2019 at 12:02 PM William Dunlap wrote: > You can get this error if one of the explanatory variables is not a > factor. E.g. &g

Re: [R] problem in WRS2

2019-11-07 Thread greg holly
than one element in get1index ERROR when I am running the t2way(y ~ Grup*Time, data = cp) using WRS2 package. Yours advice are highly appreciated. Kind regards, Greg Time Grup Cp0 Cp1 Cp14 Cp21 Cp28 Cp3 Cp7 1 25 25 25 25 25

[R] problem in WRS2

2019-11-06 Thread greg holly
I got the following error message after running t2way(y ~ Grup*Time, data = cp) Error in x[[grp[i]]] : attempt to select less than one element in get1index a part of the data is given below. Your help is highly appreciated. Greg > head(cp) Birey Grup Time y 1 11

Re: [R] Can you turn an input into a variable name?

2019-10-04 Thread Greg Snow
way to > do this? > > Thank you, > April > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Loop With Dates

2019-09-24 Thread Greg Snow
SUBSCRIBE 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 commented, minimal, self-contained, reproducible code. > > __ &g

Re: [R] power analysis for Friedman's test

2019-04-18 Thread Greg Snow
e, 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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __

Re: [R] Looping with looping

2019-04-18 Thread Greg Snow
lp@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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D.

Re: [R] Pause script at input from terminal (interactive use)

2019-04-18 Thread Greg Snow
> -- > Best regards, > Luigi > > __ > 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 &

[R] Why I can not get work the "tidyverse" and "corrr" libraries

2019-04-17 Thread greg holly
; I need work on libraries "tidyverse" and "corrr". When I cal these, I am getting the following error message. What can be done? Your help is highly appreciated. Greg Error: package or namespace load failed for ‘tidyverse’ in loadNamespace(i, c(lib.loc, .libPaths()),

Re: [R] Issue with t.test

2019-03-12 Thread Greg Snow
ps://wordpress.com/posts/smrutibulsari.wordpress.com > > > > [[alternative HTML version deleted]] > > __ > 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

Re: [R] differences between meat and metafor packages

2019-02-27 Thread greg holly
Hı Wolfgangş I do appreciate for this info. Very helpful. And I do apologize for the personal email. It was done mistakenly. Regards, Greg On Wed, Feb 27, 2019 at 5:42 AM Viechtbauer, Wolfgang (SP) < wolfgang.viechtba...@maastrichtuniversity.nl> wrote: > Hi Greg, > > Please

[R] differences between meat and metafor packages

2019-02-25 Thread greg holly
Hi all; I have got different results (CI and Q value for heterogeneity, tau) on the same data when I run meta and metafor for hazard ratio with a random effects model. The basic programs for both are given below. What can cause? Regards, Greg Metafor res <- rma(HR, SE, data=a) predict(

Re: [R] positive deviance plot for Binomial distribution

2019-01-28 Thread greg holly
Hi Jeff; Thanks so much for this. I would try to reformulate what you suggested. Your help is highly appreciated Regards, Greg On Sun, Jan 27, 2019 at 8:16 PM Jeff Newmiller wrote: > I haven't found much call to mess with this, but I think the built-in > "glm" func

[R] positive deviance plot for Binomial distribution

2019-01-25 Thread greg holly
R library for this. Regards, Greg provider outcome observation 1 1427 211 33 39 17 [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUB

Re: [R] Error "sufficient values in manual scale. 10 needed but only 7 provided"

2019-01-23 Thread greg holly
Hi Jeff; I figured out the problem. I do apologize to you and members in the list to bother you with this simple problem. Regards, Greg On Wed, Jan 23, 2019 at 6:46 PM Jeff Newmiller wrote: > Problem is in your data not matching your values, but you did not share > your data. Try usi

[R] Error "sufficient values in manual scale. 10 needed but only 7 provided"

2019-01-23 Thread greg holly
Hi Dear all; I am getting the "sufficient values in manual scale. 10 needed but only 7 provided." problem when running the followings. Your help is highly appreciated. Regards, Greg p2<-p1+scale_color_manual(name="Diseases", labels=c("Myocardial Infarction", &

[R] bsts posterior distributions

2019-01-11 Thread Greg Dropkin
r the parameters. I may misunderstand SdPrior, or perhaps the differences are with mcmc. Thanks for any help Greg ### library(bsts) library(Boom) library(mcmc) #simulate some data y<-rep(NA,50) y[1]=1 y[2]=1 s=2 set.seed(5) for (k in 1:48) { y[2+k]=y[1+k]+0.1*y[k]+s*rnorm(1) } plot(1:50,y[1:50],ma

Re: [R] Accessing Data Frame

2019-01-04 Thread Greg Snow
27;list' > >> > >> Wihout having to specify all elements in the logical tests. > >> > >> deck[deck$face == aCard$face & deck$suit == aCard$suit & deck$value == > >> > >> aCard$value,] > >>face suit value > >> 10 fo

Re: [R] test of independence

2018-12-20 Thread Greg Snow
ling 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 commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com _

Re: [R] meta analysis for sensitivity and specificity

2018-12-07 Thread greg holly
Hi Viechtbauer and Micheal; Thanks so much for writing. It is much appreciated. Regards, Greg On Fri, Dec 7, 2018 at 6:16 AM Viechtbauer, Wolfgang (SP) < wolfgang.viechtba...@maastrichtuniversity.nl> wrote: > Dear Greg, > > I am not sure if I understand your question. If you ar

Re: [R] meta analysis for sensitivity and specificity

2018-12-07 Thread greg holly
Dear All; I sincerely apologize for TYPOS. My question is that: Does anyone know any R library that runs meta-analysis differently for Sensitivity and Specificity if I have only the following info in my data set? Once again my apologies for the mistake in my earlier email. Regards, Greg

[R] meta analysis for sensitivity and specificity

2018-12-06 Thread greg holly
Does anyone know any R library that runs meta-analysis in SAS differently for Sensitivity and Specificity if I have only the following info? Regards, Greg specificity sample_size Sensitivity Sample_size 1 21 0.66 57 1 70 0.55 33 1 19 0.76 17 1 10 0.4 30 1 16 0.46 11 [[alternative HTML

Re: [R] reading data problem

2018-09-24 Thread greg holly
Hi Jan; Thanks so much. It is much appreciated. The problem has been solved. Regards, Greg On Mon, Sep 24, 2018 at 3:05 PM Jan T Kim wrote: > hmm... I don't see the quote="" paraneter in your read.csv call > > > Best regards, Jan > -- > Sent from my mobile.

Re: [R] reading data problem

2018-09-24 Thread greg holly
gt; > Bert Gunter > > > > > > "The trouble with having an open mind is that people keep coming along > and > > > sticking things into it." > > > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > > > &g

Re: [R] reading data problem

2018-09-24 Thread greg holly
Hi Bert; Thanks for writing. Here are my answers to your questions: Regards, Greg 1. What is your OS? What is your R version? *The version is 3.5.0* 2. How do you know that your data has 151 rows? *Because I looked in excel also I work on the same data in SAS* 3. Are there stray

[R] reading data problem

2018-09-24 Thread greg holly
ble("for_R_graphs.csv", header=T, sep=",") a<-read.table("for_R_graphs.txt", header=T, sep="\t") Regards, Greg [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCR

[R] label and font problems in Vennerable

2018-09-14 Thread greg holly
Hi everyone; I am running Vennerable with 7 sets of variables. The labels are not very clear and the font size is not very visible. Does anyone know how I can change the label colors and font sizes? Regards, Greg [[alternative HTML version deleted

Re: [R] Spline function

2018-08-14 Thread Greg Snow
org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/lis

  1   2   3   4   5   6   7   8   9   10   >