Displaying 20 results from an estimated 3000 matches similar to: "operating on a subset of a dataframe"
2002 Aug 20
2
weighting means
Hi everyone,
I've got a dataframe called 'faculty'. I want to do a weighted mean on
the column called 'Q8' weighted by the contents of column 'CETP'. In
addition, I need to operate on the result of splitting 'faculty'
according to the contents of a column 'FACULTY'. For example
> lapply(split(faculty$Q8, faculty$FACULTY), mean)
$"1"
[1]
2002 Jul 26
3
Fisher r-to-z transformation
Hi everyone,
I want to use the Fisher r-to-z transformation as part of a hypothesis
test of r. I can't find an R function that can do that. Am I missing
it?
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.org | http://www.zope.com
W. St. Paul, MN | | http://slashdot.org
wilson at visi.com | <dtml-var
2002 Aug 22
1
combining output from several operations
Hi everyone,
I wonder if there's a patient soul out there who has a minute to look at
the following.
I've got a set of summary statistics I need to perform many times.
Naturally, I've looked at writing a function to automate the process as
much as possible. (These are the data I mentioned recently in my
question about weighted means.) I'm having trouble figuring out the
proper
2002 Aug 07
3
Forcing integers to be nominal
Hi everyone,
I've got a problem with an analysis of variance where it appears that my
independent variable is being treated as an integer when it should be
nominal.
The data are being loaded from an SPSS file and the independent variable
'YearColl' corresponds (surprisingly enough) to a student's year in
college. :-) The integers 1-4 are used in the dataset for this purpose.
My
2002 Jun 28
4
R for simple stats
Hi everyone,
I'm taking a course in statistics as part of my doctoral program in
education at the U. of Minnesota, USA. I found R via Rpy, a python
module that makes it possible to use R from python scripts.
The instructor refers to SPSS a lot and that seems to be the standard
stats tool around here. But being more of a Unix guy and not intimidated
by programming, I'd like to see if I
2002 Aug 20
2
help page for a function
Dear R People
I have a function that I wrote. It's not part of a
library, it's just a nice function.
However, I would like to have a "Help" page for it.
How do I go about doing that please?
Thanks so much in advance!
R version 1.5.1 for Windows.
Sincerely,
Erin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2002 Aug 03
2
smcc/ make failure/ R CMD INSTALL package
Software information:
R Version 1.5.1 (2002-06-17)
ESS 5.1.20
Emacs 21.1.1
Mozilla 1.0
Linux Mandrake 8.2
Colleagues
I am having a little trouble installing packages. Having downloaded the
gzipped tarball of a package, put it in a /tmp directory, and using this
command:
[root at localhost /]# R CMD INSTALL -l 'usr/lib/R/library/'
'/home/smc/tmp/sgeostat_1.0-18.tar.gz'
I
2002 Aug 02
4
extracting data from a dataframe
Hi everyone,
Here's a question about extracting data from a dataframe:
Let's say I've got a dataframe with two vectors, TEST and GENDER. GENDER
contains a 1 for males and 2 for females. I want to separate the results
of TEST by GENDER so I can compare their means.
What's the most efficient way to do this with R?
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
2002 Jul 12
1
lmtest build fails, readline problem
Hi everyone,
I've downloaded the lmtest package, but I'm having trouble building it.
Here's the output:
copland:/home/wilson/tmp# R CMD INSTALL -l /usr/lib/R/library
lmtest_0.9-0.tar.gz
* Installing *source* package 'lmtest' ...
** libs
g77 -fPIC -g -O2 -c pan.f -o pan.o
gcc -shared -o lmtest.so pan.o -L/usr/lib/gcc-lib/i386-linux/2.95.4
-lreadline -ldl -lncurses
2002 Aug 15
2
complex splits
Hi everyone,
I'm having trouble figuring out how to split a dataframe more than once.
Let's say I have a dataframe d with a certain column called splitcol
composed of four possible ordinal values. The same dataframe has
two other columns, col1 and col2, that have one of two possible values
each. I'd like to split d$splitcol based on col1 and col2 so I can report
frequencies of the
2002 Jul 06
1
R: one-sample binomial test
try
?power.prop.test
> -----Messaggio originale-----
> Da: Tim Wilson [mailto:wilson at visi.com]
> Inviato: sabato 6 luglio 2002 6.05
> A: R-help
> Oggetto: [R] one-sample binomial test
>
>
> Hi everyone,
>
> Here's how I solved a problem for my stats class. I'm pretty sure I
> understand what's going on, but I wonder if there's a more
>
2002 Jun 30
4
modifying a vector
Hello everyone,
Thanks to all who offered suggestions after my initial query to the list.
I've been busy trying to absorb the docs as fast as possible, but this
little thing has me stumped for the moment.
I'm creating a random sample of 100 item and saving it to a vector named
'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to
each element of the
2002 Jun 30
4
modifying a vector
Hello everyone,
Thanks to all who offered suggestions after my initial query to the list.
I've been busy trying to absorb the docs as fast as possible, but this
little thing has me stumped for the moment.
I'm creating a random sample of 100 item and saving it to a vector named
'iq'. I'd like to create a second vector (iq_prime, say) by adding 20 to
each element of the
2002 Jul 06
3
one-sample binomial test
Hi everyone,
Here's how I solved a problem for my stats class. I'm pretty sure I
understand what's going on, but I wonder if there's a more direct way to
solve it.
Problem summary:
A recent poll indicated that Candidate A is leading B with 55% of the
vote. How many voters need to be surveyed to ensure a margin of error of
+/- 2.5% with 99% confidence.
Here's what I did:
2006 Aug 13
4
has_many and foreign_key question
Alright, noob here, etc. etc.
Trying to figure out the has_many usage. If I understand correctly, when
you declare that a table/class has_many whatevers, the rails assumption
is that there will be a foreign key in the whatevers table pointing back
to the ''id'' primary key in the first table. This doesn''t seem to be the
only way to have a ''has_many''
2017 Aug 24
2
likert Package
R- Help Forum
Working with the "likert" package and I can't figure out why my "bar" graphs
are backwards (see attached). The percentages are place correctly but the
bars are backwards.
#Sample code
# libraries
library(likert)
# create data
band <- c("Band 3","Band 3","Band 3","Band 3","Band 3","Band
2013 Dec 21
2
error con install_github() del paquete devtools
Gracias Jorge. Pero tiene que ser otra cosa. El Renviron está bien y unzip
está en ese path. Y al hacerlo como indica Oscar no hay problema con el
unzip
Miraré como está en otro Linux que si funciona a ver que puede ser.
Pero será después de Navidad.
Saludos
[[alternative HTML version deleted]]
2013 Dec 20
4
error con install_github() del paquete devtools
Si. Pero no funciona. En ordenador curro si funciona y tb tiene linux.
Seguiré investigando
has probado con: install_github('paquete",username='usuario')?
2013/12/20 Jose Luis Cañadas Reche <canadasreche@gmail.com>:
> Hola a todos.
>
> Estoy intentando instalar el paquete likert utilizando devtools y obtengo
el
> siguiente error
>
> library(devtools)
>
2013 Dec 20
3
error con install_github() del paquete devtools
Hola a todos.
Estoy intentando instalar el paquete likert utilizando devtools y
obtengo el siguiente error
library(devtools)
install_github('likert','jbryer')
Installing github repo(s) likert/master from jbryer
Downloading likert.zip from
https://github.com/jbryer/likert/archive/master.zip
Error en function (type, msg, asError = TRUE) : <not set>
Me pasa también con
2012 May 22
2
getting a Likert plot from a data frame
I'm creating a stacked bar chart using the likert command in the HH package. My data are in a data frame, with two numeric variables and a categorical variable, I can't get likert to use the column containing the categorical variable as a my y axis label.
Here is a quick example:
library(HH)
#my data are: