Displaying 2 results from an estimated 2 matches for "salariat".
2010 May 27
2
help calculating variable based on factor level of another
...e in x1.
This is the code I'm working with...Can any one help?
I've seen some other requests on a topic like this, but not using
factors with strings as levels; only with numeric variables.
Simon
x1<-factor(levels="social and cultural specialists", "labour",
"salariat")
x2<-if(x1==c("social and cultural specialists")) "1" elseif (x1==NA)
"NA" else "0"
*********************************
Simon J. Kiss, PhD
SSHRC and DAAD Post-Doctoral Fellow
John F. Kennedy Institute of North America Studies
Free University of Berlin...
2010 Jul 19
2
Grouping and stacking bar plot for categorical variables
...:
welfare=sample(c("less", "same", "more"), 1000, replace=TRUE)
education=sample(c("less", "same", "more"), 1000, replace=TRUE)
defence=sample(c("less", "same", "more"), 1000, replace=TRUE)
egp=sample(c("salariat", "routine non-manual", "self-employed,
farmers", "skilled labour, foremen", "unskilled labour", "social and
cultural specialists"), 1000, replace=TRUE)
welfare, education and defence are responses to a series of questions
about whether...