search for: male

Displaying 20 results from an estimated 842 matches for "male".

Did you mean: make
2005 Dec 24
2
grouping data
Hello R-users/experts, I am new to R- I have a simple question: Let say I have a data set as follows temp:[file attached] the data structure is a follows: sex age female 28 female 53 female 53 female 36 male 42 male 29 male 43 male 36 male 41 Here we are grouping all male value into male and all female value in to female as follows: t<- read.csv("agesubject1.csv", header = TRUE) male <- t$age[t$...
2010 May 01
2
Average Login based on date
Hi All, I have the data like this : >sample <- read.csv(file="sample.csv",sep=",",header=TRUE) > sample stdate Domain sex age Login 1 01/11/09 xxx FeMale 25 2 2 01/11/09 xxx FeMale 35 4 3 01/11/09 xxx Male 18 30 4 01/11/09 xxx Male 31 3 5 02/11/09 xxx Male 32 11 6 02/11/09 xxx Male 31 1 7 02/11/09 xxx FeMale 29 1 8 02/11/09 xxx FeMale 23 5 9 03/11/09 xxx FeMale 25 9 1...
2008 Feb 12
3
help with bwplot
...ex. The Mean value of each Ageclass for each sex would be connected by a line. Totally, there should be 6 lines, from which three present the Mean values of each Ageclass for respective sex. Are there any easy ways to do this in R? Ageclass Scale Mean Sex 1 21-40 BP 40.26667 female 2 41-60 BP 34.10714 female 3 61-79 BP 37.30000 female 4 21-40 GH 30.25000 female 5 41-60 GH 39.00926 female 6 61-79 GH 49.30000 female 7 21-40 MH 56.53333 female 8 41-60 MH 62.42857 female 9 61-79 MH 72.72727 female 10 21-40 PF 25.86111...
2011 Mar 13
1
troubles with logistic regression
hello everyone, I working on the dataset for my project in class and got stuck on trying to run logistic regression. here is my code: data <- read.csv(file="C:/Users/fieder.data.2000.csv") # creating subset of men fieder.male<-subset(data,data[,8]==1) unmarried.male<-subset(data,data[,8]==1&data[,6]==1) # glm fit agesq.male<-(unmarried.male[,5])^2 male.sqrtincome<-sqrt(unmarried.male[,9]) fieder.male.mar.glm<-glm(as.factor(unmarried.male[,6])~ factor(fieder.male[,7])+fieder.male[,5]+agesq.male+ m...
2008 Jul 18
2
column wise paste of data.frames
...! I'm sure that I overlook something and feel quite stupid to ask, but I have not found an easy solution to the following problem: Take e.g. the Orthodont data from the nlme package: > head(Orthodont) Grouped Data: distance ~ age | Subject distance age Subject Sex 1 26.0 8 M01 Male 2 25.0 10 M01 Male 3 29.0 12 M01 Male 4 31.0 14 M01 Male 5 21.5 8 M02 Male 6 22.5 10 M02 Male Suppose now, that I have a vector which contains the names of the "meta"-fields in this data-frame: metaFields <- c("Subject", "S...
2013 Jul 01
1
Male and female signs as subscript in plot
Hello, I'd like to add labels to my plot that include a male or female symbol as subscript. I'm working in Windows Vista and R 3.0.0. I am able to add the male symbol to the plot as regular text (NOT as subscript), e.g. with: mtext("Male\u2642") This displays the word "Male" followed by the male symbol on the plot. But "\u2642&q...
2010 Dec 09
3
hi have a question about merging.
this is the problem: load this R data frame over the internet and save it to your hard drive. http://rss.acs.unt.edu/Rdoc/library/twang/data/raceproling.RData please show how to save a dataset of males only (the variable male=1) to a new dataframe. Then do the same thing for females (male=0). Then show how to recombine the two datasets to belike the original one except that the female observations come rst, then the male observations. This resultingdataset should be the same size as the original...
2005 Jun 25
1
Confidence interval bars on Lattice barchart with groups
...iddle', 'North','South','East','West','Middle', 'North','South','East','West','Middle', 'North','South','East','West','Middle'), sex=c('Male','Male','Male','Male','Male', 'Female','Female','Female','Female','Female', 'Male','Male','Male','Male','Male', 'Female','Female','Female',...
2010 May 07
2
extract required data from already read data
Hi all, I have data like this: >sample <- read.csv(file="sample.csv",sep=",",header=TRUE) > sample stdate Domain sex age Login 1 01/11/09 xxx FeMale 25 2 2 01/11/09 xxx FeMale 35 4 3 01/11/09 xxx Male 18 30 4 01/11/09 xxx Male 31 3 5 02/11/09 xxx Male 32 11 6 02/11/09 xxx Male 31 1 7 02/11/09 xxx FeMale 29 1 8 02/11/09 xxx FeMale 23 5 9 03/11/09 xxx FeMale 25 9 1...
2008 Aug 20
4
Removing
I'm trying to remove the elements "No" from the character vector
2008 Nov 17
5
how to calculate another vector based on the data from a combination of two factors
Hi, I have a data set similar to the following State Gender Quantity TX Male 1 NY Female 2 TX Male 3 NY Female 4 I need to calculate cumulative sum of the quantity by State and Gender. The expected output is State Gender Quantity CumQuantity TX Male 1 1 TX Male 3 4 NY Female 2 2 NY Female 4 6 I highly appreciate if someone can give me some hints on solving that in R. H...
2013 Apr 18
6
count each answer category in each column
Hey, Is it possible that R can calculate each options under each column and return a summary table? Suppose I have a table like this: Gender Age Rate Female 0-10 Good Male 0-10 Good Female 11-20 Bad Male 11-20 Bad Male >20 N/A I want to have a summary table including the information that how many answers in each category, sth like this: X Gender Male 3 Female 2 N/A 0 X A...
2010 Oct 29
2
wilcox.test; data type conversion?
...rial for my students, and was planning on using Mann-Whitney U as one of the tests. I have the following (fake) data grade <- c("MVG", "VG", "VG", "G", "MVG", "G", "VG", "G", "VG") sex <- c( "male", "male", "female", "male", "female", "male", "female", "male", "male") gradesbysex <- data.frame(grade, sex) The grades is in the Swedish system, where the order is G < VG < MVG The idea is that they w...
2017 Jun 16
3
duplicated factor labels.
To extwnd on Martin 's explanation : In factor(), levels are the unique input values and labels the unique output values. So the function levels() actually displays the labels. Cheers Joris On 15 Jun 2017 17:15, "Martin Maechler" <maechler at stat.math.ethz.ch> wrote: >>>>> Paul Johnson <pauljohn32 at gmail.com> >>>>> on Wed, 14 Jun
2009 Mar 17
2
converting null to some values
Hi, I have newbie question. Suppose I have the following data: temp <- data.frame(type1 = c("male", "female", "male", "female", "female"), type2 = c("low", "med", "high", "low", "med"), a = c(1,2,4, NA, 3), b = .... [TRUNCATED] temp type1 type2 a b c 1 male low 1 5 0 2 female med 2 N...
2011 Jan 23
2
Creating subsets of a matrix
Hello, Say I have 2 columns, bmi and gender, the first being all the values and the second being male or female. How would I subset this into males only and females only? I have searched these fora and read endlessly about select[] and split() functions but to no avail. Also the table is not ordered. bmi gender -> bmi gender + bmi gender 1 24.78 male...
2010 Sep 10
3
(no subject)
Hello, I'm trying to do bar plot where 'sex' will be the category axis and 'occupation' will represent the bars and the clusters will represent the mean 'income'. sex occupation income 1 female j 12 2 male b 34 3 male j 22 4 female j 54 5 male b 33 6 female b 67 7 male j 89 8 male b 65 9 female j 4...
2017 Jun 22
2
duplicated factor labels.
...sh that it would not accept nonunique labels. I also understand it > is impractical to change this now in base R. > I don't think I succeeded in explaining why this would be nicer. > Here's another example. Fairly often, we see input data like > x <- c("Male", "Man", "male", "Man", "Female") > The first four represent the same value. I'd like to go in one step > to a new factor variable with enumerated types "Male" and "Female". > This fails > xf <- f...
2008 May 04
2
Ancova_non-normality of errors
Hello Helpers, I have some problems with fitting the model for my data... -->my Literatur says (crawley testbook)= Non-normality of errors-->I get a banana shape Q-Q plot with opening of banana downwards Structure of data: origin wt pes gender 1 wild 5.35 147.0 male 2 wild 5.90 148.0 male 3 wild 6.00 156.0 male 4 wild 7.50 157.0 male 5 wild 5.90 148.0 male 6 wild 5.95 148.0 male 7 wild 8.55 160.5 male 8 wild 5.90 148.0 male 9 wild 8.45 161.0 male 10 wild 4.90 147.0 male 11 wild 6.80 153.0 male...
2011 Feb 09
3
Need help merging two dataframes
...possible matches contribute one row each--i.e., this code gives me dataframe "t3" of 101,269 observations of 33 variables: >t3<-merge(t2,AB,by="id",all=FALSE) Dataframe AB (24 variables omitted from example dataframe): id sex age area 01 male adult LP 01 male adult LP 01 male adult LP ... 02 female subadult LP 02 female subadult LP 02 female subadult LP 02 female subadult LP ... 03 male subadult MR 03 male sub...