search for: chun

Displaying 20 results from an estimated 160 matches for "chun".

Did you mean: chn
2005 Dec 03
2
How to catch value
Dear R users: I have a problem about catch the value from function. I have following two functions (part): fbolus1 <- function() {......... par<-data.frame(Parameter=c("kel","Vd"),Initial=c(0)) check(par) .....} check<-function(par) { if (par[ ,2] <= 0){ cat("\nEnter again (y/n) ?\n\n") ans<-readline() if (ans == "n" ){
2018 Mar 02
3
data analysis for partial two-by-two factorial design
...es drugA/no drugB, yes drugA/yes drug B, omitting the fourth group of no drugA/yes drugB. I think we can not investigate interaction between drug A and drug B, can I still run model using R as usual: response variable = drug A + drug B? any suggestion is appreciated. Thank you very much! Yuan Chun Ding --------------------------------------------------------------------- -SECURITY/CONFIDENTIALITY WARNING- This message (and any attachments) are intended solely f...{{dropped:28}}
2018 Mar 05
2
data analysis for partial two-by-two factorial design
...es drugB. I think we can not investigate interaction between drug A and drug B, can I still run model using R as usual: response variable = drug A + drug B? any suggestion is appreciated. From: Bert Gunter [mailto:bgunter.4567 at gmail.com] Sent: Friday, March 02, 2018 12:32 PM To: Ding, Yuan Chun Cc: r-help at r-project.org Subject: Re: [R] data analysis for partial two-by-two factorial design ________________________________ [Attention: This email came from an external source. Do not open attachments or click on links from unknown senders or unexpected emails.] ___________________________...
2018 Mar 05
5
data analysis for partial two-by-two factorial design
...open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Mon, Mar 5, 2018 at 2:03 PM, David Winsemius <dwinsemius at comcast.net> wrote: > > > On Mar 5, 2018, at 8:52 AM, Ding, Yuan Chun <ycding at coh.org> wrote: > > > > Hi Bert, > > > > I am very sorry to bother you again. > > > > For the following question, as you suggested, I posted it in both > Biostars website and stackexchange website, so far no reply. > > > > I really...
2018 Mar 02
0
data analysis for partial two-by-two factorial design
....stackexchange.com statistical site. Cheers, Bert 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 ) On Fri, Mar 2, 2018 at 10:34 AM, Ding, Yuan Chun <ycding at coh.org> wrote: > Dear R users, > > I need to analyze data generated from a partial two-by-two factorial > design: two levels for drug A (yes, no), two levels for drug B (yes, no); > however, data points are available only for three groups, no drugA/no > drugB, y...
2009 Jan 23
1
predict function problem for glmmPQL
...ype="response") gives me all "NA"s. it works for level=0 (the fixed effects), but not for level=1. When i use newdata=traindata, predict function works perfectly. i wonder if this is a problem with predict function or it's some bug in my code? Thanks much for your help! Chun Chun Zhang Statistician at Roche
2001 Feb 19
2
How can I create qdisc, class, and filter inside the kernel?
Hi, I am writing a kernel module which works with netfilter. If a certain condition matches, I want to create a qdisc, a class and a filter inside the kernel module. How can I create qdisc, class, and filter inside the kernel? Thanks, Byung-Gon Chun _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
2007 Sep 03
3
element wise opertation between a vector and a list
...b as below lines, a<- list(c(1,3),c(1,2),c(2,3)) b<-c(10,20,30) I would like to have a list (like "d") or a vector (like "e") as below. d<-list(c((1+10),(3+10)),c((1+20),(2+20)),c((2+30),(3+30))) e<- c((1+10)+(3+10),(1+20)+(2+20),(2+30)+(3+30)) Thanks, Yongwan Chun
2018 Mar 05
0
data analysis for partial two-by-two factorial design
...t doing a one-way anova, but then I have to do three pairwise comparisons to find out the pair to show difference if p value for one way anova is significant. Thanks, Ding From: Bert Gunter [mailto:bgunter.4567 at gmail.com] Sent: Monday, March 05, 2018 2:27 PM To: David Winsemius Cc: Ding, Yuan Chun; r-help at r-project.org Subject: Re: [R] data analysis for partial two-by-two factorial design David: I believe your response on SO is incorrect. This is a standard OFAT (one factor at a time) design, so that assuming additivity (no interactions), the effects of drugA and drugB can be determined...
2018 Mar 05
0
data analysis for partial two-by-two factorial design
> On Mar 5, 2018, at 8:52 AM, Ding, Yuan Chun <ycding at coh.org> wrote: > > Hi Bert, > > I am very sorry to bother you again. > > For the following question, as you suggested, I posted it in both Biostars website and stackexchange website, so far no reply. > > I really hope that you can do me a great favor to...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
...o tried your simplified code, but got the following error Error in `dplyr::summarize()`: ! Can't supply both `.by` and `.groups`. Run `rlang::last_trace()` to see where the error occurred. Ding From: Rui Barradas <ruipbarradas at sapo.pt> Sent: Wednesday, June 12, 2024 11:29 AM To: Yuan Chun Ding <ycding at coh.org>; CALUM POLWART <polc1410 at gmail.com> Cc: r-help at r-project.org Subject: Re: [R] my R code worked well when running the first 1000 lines of R code Hello, Inline. ?s 19:?03 de 12/06/2024, Yuan Chun Ding via R-help escreveu: > I am sorry that I know I shoul...
2018 Apr 19
4
create multiple categorical variables in a data frame using a loop
...o[,i] >= quantile(pfas.pheno[,i],0.25, na.rm =T) &pfas.pheno[,i] <= quantile(pfas.pheno[,i],0.75, na.rm =T)] < -1 }) } Can you help me fix the problem? Thank you, Yuan Chun Ding City of Hope National Medical Center --------------------------------------------------------------------- -SECURITY/CONFIDENTIALITY WARNING- This message (and any attachments) are intended solely f...{{dropped:22}}
2018 May 11
3
add one variable to a data frame
Hi Sarah, Thank you so much!! I got your good ideas. Ding -----Original Message----- From: Sarah Goslee [mailto:sarah.goslee at gmail.com] Sent: Friday, May 11, 2018 11:40 AM To: Ding, Yuan Chun Cc: r-help mailing list Subject: Re: [R] add one variable to a data frame [Attention: This email came from an external source. Do not open attachments or click on links from unknown senders or unexpected emails.] Hi, Here's one way to approach it, using the coercion of factor to numeric....
2018 Mar 05
2
data analysis for partial two-by-two factorial design
...and sticking things into it." > > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > > On Mon, Mar 5, 2018 at 2:03 PM, David Winsemius <dwinsemius at comcast.net> > wrote: > > > > > On Mar 5, 2018, at 8:52 AM, Ding, Yuan Chun <ycding at coh.org> wrote: > > > > > > Hi Bert, > > > > > > I am very sorry to bother you again. > > > > > > For the following question, as you suggested, I posted it in both > Biostars website and stackexchange website, so far no reply...
2018 Apr 19
0
create multiple categorical variables in a data frame using a loop
...g it is better to use dat[["variable"]] than dat$variable. So your code could be pfas.pheno[[cat.var]] <- NA pfas.pheno[[cat.var]][pfas.pheno[,i] <= quantile(pfas.pheno[,i],0.25, na.rm =T)] <- 0 etc. Untested. Hope this helps, Rui Barradas On 4/19/2018 7:20 PM, Ding, Yuan Chun wrote: > Hi All, > > I want to create a categorical variable, cat.pfoa, in the file of pfas.pheno (a data frame) based on log2pfoa values. I can do it using the following code. > > pfas.pheno <-within(pfas.pheno, {cat.pfoa<-NA > cat.pfoa[pfas.pheno$log2pfoa <=quantil...
2018 Jan 15
1
consolidate three function into one
...ner for writing R function and need to find a good guide source about writing R functions. If you know a good book or website for guidance of R function, please let me know. Thanks, Ding From: Bert Gunter [mailto:bgunter.4567 at gmail.com] Sent: Monday, January 15, 2018 10:11 AM To: Ding, Yuan Chun <ycding at coh.org> Cc: Richard M. Heiberger <rmh at temple.edu>; r-help at r-project.org Subject: Re: [R] consolidate three function into one That is certainly OK, but you can also just use print(ggsurvplot(...)) as your final statement. out <- RFS( ...) would then return the ggsur...
2024 Jun 12
1
my R code worked well when running the first 1000 lines of R code
Hello, Inline. ?s 19:03 de 12/06/2024, Yuan Chun Ding via R-help escreveu: > I am sorry that I know I should provide a dataset that allows to replicate my problem. > > It is a research dataset and quite large, so I can not share. > > Both Bert and Tim guessed my problem correctly. I also thought about the conflicting issue betwe...
2018 May 11
0
add one variable to a data frame
...single line command: dat1$C <- seq(length(unique(dat1$B)))[ match( dat1$B, unique(dat1$B) )] -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 ?On 5/11/18, 12:04 PM, "R-help on behalf of Ding, Yuan Chun" <r-help-bounces at r-project.org on behalf of ycding at coh.org> wrote: Hi Sarah, Thank you so much!! I got your good ideas. Ding -----Original Message----- From: Sarah Goslee [mailto:sarah.goslee at gmail.com] Sent: Friday, May 11, 2018 11:40 AM...
2018 Mar 05
0
data analysis for partial two-by-two factorial design
...at people keep coming along and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > On Mon, Mar 5, 2018 at 2:03 PM, David Winsemius <dwinsemius at comcast.net> wrote: > > > On Mar 5, 2018, at 8:52 AM, Ding, Yuan Chun <ycding at coh.org> wrote: > > > > Hi Bert, > > > > I am very sorry to bother you again. > > > > For the following question, as you suggested, I posted it in both Biostars website and stackexchange website, so far no reply. > > > > I really hope...
2018 Mar 05
0
data analysis for partial two-by-two factorial design
...long and sticking things into it." > > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > > On Mon, Mar 5, 2018 at 2:03 PM, David Winsemius <dwinsemius at comcast.net> wrote: > > > > > On Mar 5, 2018, at 8:52 AM, Ding, Yuan Chun <ycding at coh.org> wrote: > > > > > > Hi Bert, > > > > > > I am very sorry to bother you again. > > > > > > For the following question, as you suggested, I posted it in both Biostars website and stackexchange website, so far no reply. &gt...