search for: fxb

Displaying 5 results from an estimated 5 matches for "fxb".

Did you mean: feb
2008 Feb 10
1
Using 'sapply' and 'by' in one function
...a simple (trivial) example of what I'd like to do: new <- data.frame(Outcome.1=rnorm(10),Outcome.2=rnorm(10),sex=rep(0:1,5),Pred=rnorm(10)) fxa <- function(x,data) { lm(x~Pred,data=data)$coef } sapply(new[,1:2],fxa,new) # this yields coefficients for the predictor in separate models fxb <- function(x) {lm(Outcome.1~Pred,da=x)$coef}; by(new,new$sex,fxb) #yields the coefficient for Outcome.1 for each sex ## I'd like to be able to combine 'sapply' and 'by' to be able to get the regression coefficients for Outome.1 and Outcome.2 by each sex, rather than runni...
2011 Oct 17
1
Build 64-bit R Solaris 10 Sparc
...4-bit R on Solaris 10 Sparc with the Oracle Studio Compiler suite? Could anyone start give me a clue. I have tried to no avail. Thanks, Nynese Nynese Tinsley, BSEE, MSCIS UNIX Systems Analyst Harvard School of Public Health Center for Biostatistics in AIDS Research 651 Huntington Ave, FXB 614 Boston, MA 02115 617-432-3244 office# 617-432-2843 fax# [[alternative HTML version deleted]]
2003 Jan 21
1
rpart help
...n rpart? Also, do you happen to know the parameter options which will make rpart and tree act the same. I am wondering if this is possible since I have no missing data. Thank you for any help you can offer, Doug Kitch Doug Kitch, M.S. Statistician/COMP RAC SDAC/Harvard School of Public Health FXB Bldg. Room 504 651 Huntington Avenue Boston, MA 02115 Phone: (617) 432-3281 FAX: (617) 432-3163 Email: dkitch at sdac.harvard.edu
2011 Aug 03
0
Help Needed in attempting to install 64-bit R!
...tests po; do \ (cd ${d} && /usr/ccs/bin/make R) || exit 1; \ done make: Fatal error: Command failed for target `R' Thanks, Nynese Nynese Tinsley, BSEE, MSCIS UNIX Systems Analyst Harvard School of Public Health Center for Biostatistics in AIDS Research 651 Huntington Ave, FXB 614 Boston, MA 02115 617-432-3244 office# 617-432-2843 fax#
2008 Feb 11
0
Testing for differecnes between groups, need help to find the right test in R. (Kes Knave)
...a simple (trivial) example of what I'd like to do: new <- data.frame(Outcome.1=rnorm(10),Outcome.2=rnorm(10),sex=rep(0:1,5),Pred=r norm(10)) fxa <- function(x,data) { lm(x~Pred,data=data)$coef } sapply(new[,1:2],fxa,new) # this yields coefficients for the predictor in separate models fxb <- function(x) {lm(Outcome.1~Pred,da=x)$coef}; by(new,new$sex,fxb) #yields the coefficient for Outcome.1 for each sex ## I'd like to be able to combine 'sapply' and 'by' to be able to get the regression coefficients for Outome.1 and Outcome.2 by each sex, rather than runni...