Displaying 20 results from an estimated 757 matches for "female".
2008 Feb 12
3
help with bwplot
...sex. 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...
2008 May 02
1
Cant resolve Error Message
Hi,
Im having trouble creating the following graph. Here is my code:
library(plotrix)
library(prettyR)
female_improvement
<-read.table("C://project/graphs/gender/breakdown/gender-improvement/female-improvement.csv",
sep=",", header=TRUE)
barp(rbind(rep(length(female_improvement$gender),2),freq(female_improvement$reason)[[1]]),
ylab="22 Males participated in the survey",
col...
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...
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...
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 NA 0
3 male high...
2005 Jun 25
1
Confidence interval bars on Lattice barchart with groups
...39;,'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','Female','Female',
'Male','Male','Male',...
2005 Mar 29
1
Mosaicplot with different colors
This dataset below is one sample answer the questioner from our customer.
> testbank <- read.table("testbank.txt", header=T)
> testbank
age married income gender ownhouse class
1 20-30 no high female yes 1st
2 30-40 no high female yes 1st
3 40-50 no low female yes 1st
4 50-60 no high female yes 1st
5 60-70 no high female yes 1st
6 20-30 no high female yes 1st
7 20-30 no medium female yes 1st
8 20-30...
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.
Hao
--
View...
2006 May 01
3
pulling items out of a lm() call
I want to write a function to standardize regression predictors, which
will require me to do some character-string manipulation to parse the
variables in a call to lm() or glm().
For example, consider the call
lm (y ~ female + I(age^2) + female:black + (age + education)*female).
I want to be able to parse this to pick out the input variables
("female", "age", "black", "education"). Then I can transform these as
appropriate (to get "z.female", "z.age", etc)...
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 1 24.78...
2010 Sep 10
1
lmer output
Hi
I have a question regarding an output of a binomial lmer-model.
The model is as follows:
lmer(y~diet * day * female + (day|female),family=binomial)
The corresponding output is:
Generalized linear mixed model fit by the Laplace approximation
Formula: y ~ diet * day * female + (day | female)
AIC BIC logLik deviance
1084 1136 -531.1 1062
Random effects:
Groups Name Variance Std.Dev. Corr
female...
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...
2005 Dec 20
1
Help to find only one class and differennt class
Dear R users,
I have a problem, which I can not find a solution.
Probably someone could help me?
I have a result from my classification, like this
> credit.toy
[[1]]
age married ownhouse income gender class
1 20-30 no no low male good
2 40-50 no yes medium female good
[[2]]
age married ownhouse income gender class
1 20-30 yes yes high male poor
2 20-30 no yes high male good
3 20-30 yes no low female poor
4 60-70 yes yes low female poor
5 60-70 no yes high male poor
[[3]]...
2013 Nov 04
2
Fwd: recodificar variables
Buenas noches, mi pregunta es tal vez sencilla.
tengo esta libreria y estos datos
library(nlme)
data(MathAchieve) Infoest = MathAchieve
en esta base quiero contar la cantidad de casos en la que la columna Sex,
toma el valor Female, como puedo hacerle el filtro para ver solo los
Females.
y como puedo dentro del mismo conjunto de datos agregar la variable
numerica que me cuente 1 si es Female y 0 si no
Muchas Gracias
--
ALEXANDER
U SANTO TOMAS - ESTADÍSTICA
--
ALEXANDER
U SANTO TOMAS - ESTADÍSTICA
[[alternative HTML...
2004 Jun 22
1
Grouped AND stacked bar charts possible in R?
...row.vars = 2:1, col.vars = "Survived")
Now take it a step further to try to add another dimension:
b <- ftable(Titanic, row.vars=1:3)
Survived No Yes
Class Sex Age
1st Male Child 0 5
Adult 118 57
Female Child 0 1
Adult 4 140
2nd Male Child 0 11
Adult 154 14
Female Child 0 13
Adult 13 80
3rd Male Child 35 13
Adult 387 75
Female Child...
2008 Feb 06
1
Nested ANOVA models in R
Hi,
I'm trying to work through a Nested ANOVA for the following scenario:
20 males were used to fertilize eggs of 4 females per male, so that
female is nested within male (80 females used total). Spine length
was measured on 11 offspring per family, resulting in 880
measurements on 80 families.
I used the following two commands:
summary(aov(Spinelength ~ Male*Female))
and
summary(aov(Spinelength ~ Male/Female))...
2011 Sep 07
1
Subsetting does not remove unwanted data in table
...n (and probably simple answer): How can I delete the
HabitatDensity=="Med" from the dataset or table, so that I be left with
a 2x2xK table.
Thanks for any assistance.
Kind regards,
Scott
> data1
Habitat
HabitatDensity
Sex
Grass
High
Male
Grass
High
Female
Grass
Med
Male
Grass
Med
Female
Grass
Low
Male
Grass
Low
Female
Rock
High
Male
Rock
High
Female
Rock
Med
Male
Rock
Med
Female
Rock
Low
Male
Rock
Low
Female
Water
High
Male
Water
High
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...