Displaying 20 results from an estimated 416 matches for "women".
2004 Mar 22
5
detach()
I got bitten recently by the following behaviour of detach();
> save(file="Junk")
> attach("Junk")
> search()
[1] ".GlobalEnv" "file:Junk" "package:methods" "package:ctest"
[5] "package:mva" "package:modreg" "package:nls" "package:ts"
[9]
2007 Apr 18
3
Problems in programming a simple likelihood
...************************************
mlogl <- function(mu, y, X) {
n <- nrow(X)
zeta <- X%*%mu
llik <- 0
for (i in 1:n) {
if (y[i]==1)
llik <- llik + log(pnorm(zeta[i,], mean=0, sd=1))
else
llik <- llik + log(1-pnorm(zeta[i,], mean=0, sd=1))
}
return(-llik)
}
women <- read.table("~/R/Examples/Women13.txt", header=TRUE) # DATA
# THE DATA SET CAN BE ACCESSED HERE
# women <-
read.table("http://wps.aw.com/wps/media/objects/2228/2281678/Data_Sets/ASCII/Women13.txt", header=TRUE)
# I HAVE CHANGED THE NAMES OF THE VARIABLES
# J is changed...
2014 Jan 03
2
Question about --files-from= and folder structure
...ture (actually, I'm
looking to sync *only the files* to the new destination directory).
The source files are all subfolders under /backup/Music:
./Adrian Legg/Mrs. Crowe's Blue Waltz/Paddy Goes To Nashville.mp3
./Adrian Legg/Mrs. Crowe's Blue Waltz/Sour Grapes.mp3
./Adrian Legg/Wine, Women & Waltz/Divorcee's Waltz.mp3
./Adrian Legg/Wine, Women & Waltz/Mrs. Crowe's Blue Waltz.mp3
./Adrian Legg/Wine, Women & Waltz/Nora Handley's Waltz.mp3
./Adrian Legg/Wine, Women & Waltz/Queenie's Waltz.mp3
./Adrian Legg/Wine, Women & Waltz/Silent Night.mp3
./Adrian...
1999 Jan 13
3
problem w/ lm() ?
...contributors.
Type "?contributors" for a list.
Type "demo()" for some demos, "help()" for on-line help, or
"help.start()" for a HTML browser interface to help.
Type "q()" to quit R.
[Previously saved workspace restored]
> data(women)
> names(women)
[1] "height" "weight"
> summary(lm(weight ~ height, data = women))
Call:
lm(formula = weight ~ height, data = women)
Residuals:
Min 1Q Median 3Q Max
-1.7333 -1.1333 -0.3833 0.7417 3.1167
Coefficients:
Error: binary operator applied...
2010 Feb 09
1
lm combined with splines
Hello,
In the following I tried 3 versions of an example in R help. Only the two first predict command work.
After :
library(splines)
require(stats)
1)
fm1 <- lm(weight ~ bs(height, df = 5), data = women)
ht1 <- seq(57, 73, len = 200)
ph1 <- predict(fm1, data.frame(height=ht1)) # OK
plot(women, xlab = "Height (in)", ylab = "Weight (lb)")
lines(ht1, ph1)
2)
height <- women$height # 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
weight <- women$weight #...
2006 Sep 05
1
Sweave and the "[" function
I am wanting to use the "[" operator in an S-chunk, e.g.
<<>>=
str(women)
women$height
women[,1]
"["(women,1)
@
to show the equivalence of three methods of extracting an element from
a data.frame.
However Sweave returns the last of these as
women[1]
in the S input chunk
How can I force it not to do this and return "["(women,1)
2008 Mar 28
2
Comparing proportions between groups
Hello there,
I have two groups (men and women) and I know per group how many of them
smoke or don't smoke (women 40 of 200; men 100 of 300). I would like to know
how I can compare in R if men and women differ significantly in their
smoking. However, because there are more men in the sample than women I
cannot just compare the number of sm...
2012 Mar 14
0
using predict() with poly(x, raw=TRUE)
...the source of the error is the same.) The problem is
technical and concerns the design of poly(), which is why I'm sending this
message to r-devel rather than r-help.
To illustrate:
------------ snip -------------
> mod.pres <- lm(prestige ~ log(income, 10) + poly(education, 3) +
poly(women, 2),
+ data=Prestige) # Prestige data from car package
> predict(mod.pres, newdata=data.frame(education=10, income=6000, women=30))
# works
1
39.66414
> model.frame(delete.response(terms(mod.pres)), data.frame(education=10,
income=6000, women=30))
log(income, 10)...
2005 Feb 13
5
Select Enumerated Values with FormOptionsHelper
...n the
application:
http://one.textdrive.com/pipermail/rails/2005-January/001536.html
So here''s my situation. I have a table called "divisions" with a column
named "format". It''s a varchar, but only the following values are
valid: ["open", "womens", "coed"]. Naturally, I want to have an HTML
select element on the edit page that contains the valid values, and is
set to the current value. It seems like FormOptionsHelper#select should
do exactly what I want, so I tried this:
<%= select("division", "form...
2010 Nov 01
1
sqldf error only on Unix not Windows
Hello Group,
I am having trouble with the sqldf package on unix. The same code works fine on windows.
Silly Example script:
# Load the package
library(sqldf)
# Use the titanic data set
data(women)
colnames(women)
head(women)
sqldf('select height, count(*) from women where height is not null group by weight')
Unix Output and error:
bash-3.00$ R --vanilla <testR.R
R version 2.10.1 (2009-12-14)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R i...
2009 Sep 03
2
How can I appoint a small part of the whole data
Dear all,
I have 1980~1990 eleven datas,
every year have three variables,
wage
gender(1=female, 2=male)
race(1=black, 2=white)
My original commands is:
fig2b<-reldist(y=mu1990$wage,yo=mu1980$wage,.......)
I have three questions:
1. If I want to appoint y=women's wage in 1990
yo=women's wage in 1980
2. If I want to appoint y=women's wage in 1990
yo=men's wage in 1990
3. If I want to appoint y=black women's wage in 1990
yo=white w...
2018 Mar 14
0
EuroLLVM: Women in Compilers and Tools Reception Tickets
We still have some tickets available for the Women in Compilers and Tools reception that is held the night before the 2018 Euro LLVM Developers’ Meeting in Bristol, UK.
Tickets are available here.
https://www.eventbrite.com/e/2018-european-llvm-developers-meeting-women-in-compilers-and-tools-reception-tickets-42287427835
This is an evening recept...
2011 Jun 06
1
list demographics
...st shot at classifying the names given in the email header as
male/female, but ended with a fair number of unknowns.
This dataset had 2797 list messages, in 895 questions. 1501 messages
were replies to one of those questions by someone not the original
querent.
Across all messages, 6.5% were from women, 77.8% from men, 15.7% unknown.
For new questions, 11.7% were from women, 61.2% from men, 27.0% unknown.
Among responses to other people's questions, 2.6% were from women,
92.3% from men, 5.1% unknown.
Nine women answered other people's questions, but only two were what
I'd consider...
2005 Apr 19
1
controlling the x axis of boxplots
...n hope ...
I have data for continuous variables (measures of residents) by a
categorical variable in range (1,22), the units in which they live.
I want to plot these data with a pair of boxplots one above another
with same x-axis (1,22) using par(mfrow=c(2,1)) and then plotting
first for the women then for the men. My problem is that some units
have only men, some have only women, and some have both. I'd like
both plots to have the same x axis and the notched, varwidth boxplots
to locate themselves with some gaps so that the units are in the same
place on the x axis on each plot....
2008 Dec 24
1
Using SPSS Labels
...labels=TRUE)
When I try to import the file, the value labels are not assigned to the
rows. This is what I get.
ID GENDER
1 1 1
2 2 2
3 3 1
4 4 2
5 5 1
6 6 1
7 7 1
8 8 2
9 9 2
10 10 1
11 11 3
In the .sav file, 1 = Men 2 = Women 3 = user assigned missing.
The variable values are attached as a value.labels attribute. If I
remove row # 11 (gender = 3), I can import the file as I expect.
ID GENDER
1 1 Men
2 2 Women
3 3 Men
4 4 Women
5 5 Men
6 6 Men
7 7 Men
8 8 Women...
2016 May 05
2
Resuming the discussion of establishing an LLVM code of conduct
...ardless of what kind CoC you have: if it comes to having to enforce
it, the community has stopped being open and welcoming.
So I think this approach is attacking the problem that you have after
you already lost.
> After observing what is happening in many other communities in
> regards to women in technology, I would be much more likely to
> participate in a community that actually has a well thought out and
> meaningful code of conduct.
First, let me state that I'm fully aware that women are subject to
harrassment. It's one of those sad facts in life.
Still, I don't...
2008 Aug 23
3
graphs for pretest data
Is there an easy way to make graphs for the following data. I have
pretest and posttest scores for men and
women. I would like to form a 'titlted segment' plot for the data.
That is, make segments joining the scores,
with different types of segments for men and women.
Example data:
menpre <- c(43,42,26,39,60,60,46)
menpost <- c(40,41,36,42,54,58,43)
womenpre <- c(46,56,81,56,70,70)
womenpo...
2012 May 05
3
metafor
Dear users of metafor,
I am working on a meta-analysis using the metafor package. I have a
excel csv database that I am working with. I am interested in pooling
the effect measures for a particular subgroup (European women) in this
csv database. I am conducting both sub-group and meta-regression.
In subgroup-analyses, I have stratified the database to create a
separate csv file just for European women from the original database
and conducted the following:
women_west<-read.csv("women_west.csv")
print(w...
2002 Aug 17
1
Peculiar behavior of attached objects
...-----------------------------------------
I'm new to R, so perhaps I'm missing something that could be explained
to me. If it is decided not to change R's behavior, then at the least
I suggest that the example given by help(attach) be extended by
appending the following:
attach(women)
women$height <- height*2.54 ## Don't try to do this either, as it
## will still create a new variable "height" with the original
## values of women$height. I.e., height no longer points to the
## present value of women$height:
sd(women$height-height)...
2007 Jun 28
2
sampling question
...interested in locating a script to implement a sampling scheme
that would basically make it more likely that a particular observation
is chosen based on a weight associated with the observation. I am
trying to select a sample of ~30 census blocks from each ZIP code area
based on the proportion of women in a ZCTA living in a particular
block. I want to make it more likely that a block will be chosen if
the proportion of women in a patient's age group in a particular block
is high. Any ideas are appreciated!