search for: symptom2

Displaying 6 results from an estimated 6 matches for "symptom2".

Did you mean: symptom
2010 Aug 31
1
summary in Hmisc and Latex
...quot;), 500, rep=TRUE)) age<- rnorm(500, 50, 5) treatment<- factor(sample(c("Drug","Placebo"), 500, rep=TRUE)) symp<- c('Headache','Stomach Ache','Hangnail', 'Muscle Ache','Depressed') symptom1<- sample(symp, 500,TRUE) symptom2<- sample(symp, 500,TRUE) symptom3<- sample(symp, 500,TRUE) Symptoms<- mChoice(symptom1, symptom2, symptom3, label='Primary Symptoms') table (Symptoms) table(symptom1,symptom2) f<- summary(treatment ~ age + sex + Symptoms, method="reverse", test=TRUE) latex(f,file=&quot...
2008 Oct 08
1
NA's in multiple choice summary table in Hmisc
...produces nicely formatted latex tables. My problem is, that table includes a category for people who have at least one absent symptom and I don't know how to exclude it. Here's a very easy reproducible example: library(Hmisc) Symptom1<-c("Headache","Headache",NA) Symptom2<-c(NA,"Anxiety",NA) Symptoms<-mChoice(Symptom1,Symptom2) summary(~Symptoms,method="reverse") Descriptive Statistics (N=3) +-------------------+-------+ | | | +-------------------+-------+ |Symptom1 : Headache|67% (2)| +-------------------+-------+...
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
...;), 500, rep=TRUE)) age <- rnorm(500, 50, 5) treatment <- factor(sample(c("Drug","Placebo"), 500, rep=TRUE)) symp <- c('Headache','Stomach Ache','Hangnail', 'Muscle Ache','Depressed') symptom1 <- sample(symp, 500,TRUE) symptom2 <- sample(symp, 500,TRUE) symptom3 <- sample(symp, 500,TRUE) Symptoms <- mChoice(symptom1, symptom2, symptom3, label='Primary Symptoms') table (Symptoms) table(symptom1,symptom2) f <- summary(treatment ~ age + sex + Symptoms, method="reverse", test=TRUE) g <- summar...
2010 Apr 09
0
Trouble with mChoice() in the Hmisc package.
...g the the Hmisc reporting facilities recently, mostly successfully. I'm having some trouble with mChoice() multiple-choice objects, though. Here's some example code and output from R-help a couple of years ago: library(Hmisc) Symptom1 <- c("Headache", "Headache", NA) Symptom2 <- c(NA, "Anxiety", NA) Symptoms <- mChoice(Symptom1, Symptom2) summary(~ Symptoms, method="reverse") [Output:] Descriptive Statistics (N=3) +-------------------+-------+ | | | +-------------------+-------+ |Symptom1 : Headache|67% (2)| +-------...
2003 Jun 27
0
Interpretation of loess
I have data on a number of patients. Essentially, for each patient I know his/her age and whether he/she exhibits certain symptoms: age symptom1 symptom2 50 0 1 53 0 0 70 1 1 ... I have started off by fitting simple models with forms like Prob(patient of age t shows symptom i) = 1 - Exp(-lambda_i * t) or Prob(patient of age t shows symptom i) = 1 - A_i * Exp(-lambda_i * t) Now, I want to plo...
2008 Jul 25
2
Package Hmisc, functions summary.formula() and latex(), options pdig, pctdig, eps and prmsd
Un texte encapsul? et encod? dans un jeu de caract?res inconnu a ?t? nettoy?... Nom : non disponible URL : <https://stat.ethz.ch/pipermail/r-help/attachments/20080725/bcafe250/attachment.pl>