Re: [R] Nicely formatted summary table with mean, standard deviation or number and proportion

2007-05-13 Thread Keith Wong
ion, and not to summary.formula() itself: options(digits = 2) (x = summary(treatment ~ age + sex, method = "reverse") ) latex(x, prmsd = T) That's what I needed, thank you. Keith At 12:11 PM 14/05/2007, Frank E Harrell Jr wrote: >Keith Wong wrote: >>Dear all, >>T

[R] Nicely formatted summary table with mean, standard deviation or number and proportion

2007-05-13 Thread Keith Wong
), llist(treatment), FUN = g, stat.name=c("n", "mean", "sd"))) treatment n mean sd 1 Drug 263 49.9 4.94 2 Placebo 237 50.1 4.97 > > # this works but table is rotated, and it count data has to be > # treated separately. -- Keith Wong Ph

[R] Re: Repeated Measures, groupedData and lme

2005-03-18 Thread Keith Wong
Hello, I'm an R-newbie, but I've been learning to use lme for repeated measures experiments as well. If I understand correctly: Outcome variable: Mg (Kg/ha) Subject/grouping variable: block Condition/treatment: treatment (19 levels) Repeated factor: time (3 levels: 99, 02, 04) I think

[R] How to reply to a posting if I subscribe to the digest version of R-help?

2005-03-10 Thread Keith Wong
Dear listmembers, Is there a recommended method of responding to a thread if I am getting the mailing list in digest form? Will the mailing list program automatically match threads if I copy the subject from the original posting? Thank you. Keith __ R

Re: [R] Random intercept model with time-dependent covariates, results different from SAS [SUMMARY]

2004-07-15 Thread Keith Wong
o the list. Keith Wong __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Random intercept model with time-dependent covariates, results different from SAS

2004-07-04 Thread Keith Wong
Thank you for the very prompt response. I only included a small part of the output to make the message brief. I'm sorry it did not provide enough detail to answer my question. I have appended the summary() and anova() outputs to the two models I fitted in R. Quoting Prof Brian Ripley <[EMAIL PROTE

[R] Random intercept model with time-dependent covariates, results different from SAS

2004-07-04 Thread Keith Wong
Dear list-members I am new to R and a statistics beginner. I really like the ease with which I can extract and manipulate data in R, and would like to use it primarily. I've been learning by checking analyses that have already been run in SAS. In an experiment with Y being a response variable,