search for: mchoice

Displaying 12 results from an estimated 12 matches for "mchoice".

Did you mean: choice
2010 Apr 09
0
Trouble with mChoice() in the Hmisc package.
Hi All:-- I've started using 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,...
2011 Jun 02
0
mChoice prb in rms
...age and the summary of a and b, stratified by epo as follows using summary.formula h<-data.frame(a=sample(c("A",NA),100,replace=T),b=sample(c("B",NA),100,replace=T),age=rnorm(100,50,25),epo=sample(c("Y","N"),100,T)) library(rms) summary.formula(epo~age+mChoice(a,b,label="test"),method="reverse",data=h,na.rm=TRUE,test=T) Descriptive Statistics by epo +---------+-------------------+-------------------+------------------------+ | |N |Y | Test | | |(N=51)...
2007 Apr 25
2
Coercing data types for use in model.frame
In the Hmisc package there is a new data class 'mChoice' for multiple choice variables. There are format and as.numeric methods (the latter creates a matrix of dummy variables). mChoice variables are not allowed by model.frame. Is there a way to specify a conversion function that model.frame will use automatically? I would use as.factor here...
2007 Apr 25
2
Coercing data types for use in model.frame
In the Hmisc package there is a new data class 'mChoice' for multiple choice variables. There are format and as.numeric methods (the latter creates a matrix of dummy variables). mChoice variables are not allowed by model.frame. Is there a way to specify a conversion function that model.frame will use automatically? I would use as.factor here...
2008 Oct 08
1
NA's in multiple choice summary table in Hmisc
Hi, I have a set of 30 binary variables measuring side effects after drug treatment. Since each subject can have multiple side effects, I want to display these side effects in a multiple choice table. I'm using the summary and mChoice functions of the Hmisc package, because it 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(&q...
2010 Apr 30
4
plotting multiple CIs
Hello, I need to plot multiple confidence intervals for the same model parameter e.g. so for the same value of the parameter in point x_1 I would like to see four different confidence intervals so that I can compare the accuracy e.g. boot basic vs normal vs my own vs classic lm CI etc. I like very very much the plotCI implemented here: http://cran.r-project.org/web/packages/plotrix/index.html
2010 Aug 31
1
summary in Hmisc and Latex
...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="") latex(f,file="",ctable=T)
2010 Jun 18
1
Latex problem in Hmisc (3.8-1) and Mac Os X with R 2.11.1
...quot;,"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 <- summary(treatment ~ age + sex + symptom1, method="reverse", test=TRUE) latex(g) >...
2003 Feb 10
1
Type of multi-valued variable
Hi, I've read in the past a thead in the R discussion list about the multi-valued type variable (what was called checklist). At the moment Gregory had intention to add some general code in his gregmisc package. I'm wondering if there's some general code / packages available ? A general class for taking account this type of variable would be very useful in the domain of survey
2003 May 17
1
how to handle 'multiresponse' variable?
Hello! I have dataset where one variable is 'multiresponse', like this: [1] "1 2" "1 2 3" "4" "1 4" "4 3" etc. 'responses' separated by space. observations in different 'rows' of data.frame. I can do strsplit(data$var,' ') and make a list, where multiple responses are elements of character vectors, like this: $
2009 Aug 19
4
Basic question: Reading in multiple choice question responses to a single column in data frame
I'm using read.delim to successfully read in tab delimited data, but some columns' values are comma seperated, reflecting the fact that user chose a few answers on a multi-select question. I understand that each answer is its own category and so could be represented as a seperate column in the data set, but I'd like the option of reading in the data column, and converting it to a
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>