Displaying 20 results from an estimated 82 matches for "crosstabs".
Did you mean:
crosstab
2008 Nov 12
1
Crosstabs Output
Hi, I'm a new R user.
I noticed that RKWard has a really nice output when it does crosstabs. It
even includes the chi-squared values. However, I obviously can't simply copy
this into my standalone R script. Does anyone know the code or a way for me
to view the code.
Secondly, if I am writing an R script I want to be able to view the output
as a pdf even if my function is not a graph,...
2002 Jul 11
0
lattice and crosstabs with empty cells
...ing Inf
2: no finite arguments to max; returning -Inf
3: no finite arguments to min; returning Inf
4: no finite arguments to max; returning -Inf
This does not fail in S-PLUS Version 3.4 Release 1 for DEC alpha,
Digital UNIX (OSF/1) V3.2 : 1996.
A similar problem:
Is there an equivalent to S-PLUS crosstabs(), or SAS PROC FREQ, in
R, that will not fail if there are empty cells? The S-PLUS
crosstabs(), copied into R, fails when one attempts to apply it to
data with empty cells:
> crosstabs( ~ fac1 + fac2, data=stuff)
Error in crosstabs(~fac1 + fac2, data = stuff) :
Object "NULL"...
2006 Dec 30
1
Crosstab from sql dump
Hello all,,
Im looking for a simple function to produce a crosstab from a dumped
sql query result. Its very hard to produce crosstabs with most
databases (Access being the exception), so with the vast array of R
packages, Im sure this has to have already been implemented somewhere.
Examples are always good:
Take a csv dump like
name code
user1 100
user2 100
user1 200
user2 210
user1 300
user2 300
and produce
user1 user2
100 1...
2000 May 17
1
crosstabs
Hi all!
What is the equivalent R function of SPLUS crosstabs?
Thank you.
Danar.
Stat. Inst. Umea Univ.
Umea, Sweden
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "b...
2000 Oct 24
2
Crosstabs function
Is there a crosstabs function like the one found in S-Plus available in any
of the R addon packages? I can't seem to locate anything other than the
chisq.test, which is adequate but does not yield the output customarily
required with any journal submission (in my field). (S-Plus, SPSS, SAS
all provide exampl...
2012 Apr 04
0
crosstabs and histograms with flexible binning of dates
...R. Unfortunately, I need to do a little more than I initially expected.
I have 5K lines of data that look like this:
ID AREA DATE
0001 Center 2010-10-15
0002 Center 2010-01-02
0003 NorthWest 2010-02-05
0004 SouthWest 2010-05-11
I would like to create a script to create crosstabs like the one below, but
that (1) could be used to easily create small multiples with lattice or
ggplot2 and (2) provides flexible binning options, such as monthly from a
specific day. Should I manually create the crosstab or can I use a histogram
function to generate it on the way to generating a g...
2012 Jul 20
3
Crosstab with Average and Count
I have the following data:
x <- as.factor(c(1,1,1,2,2,2,3,3,3))
y <- as.factor(c(10,10,10,20,20,20,30,30,30))
z <- c(100,100,NA,200,200,200,300,300,300)
I could create the cross tab of x and y with Sum of z as its elements using
the xtabs function as follows:
# X Vs. Y with Sum Z
xtabs(z ~ x + y)
y
x 10 20 30
1 200 0 0
2 0 600 0
3 0 0 900
How do I replace
2000 Jan 31
1
Crosstabs?
Is there an equivalent in R to the crosstabs command S-Plus? I've been
searching for a while and can't seem to find anything.
Thanks.
Mark J. Lamias
Department of Statistics
Department of Political Science
Survey Methodology Program/Survey Research Center
Institute for Social Research - University of Michigan
426 Thompson Street, R...
2000 Nov 21
1
S function crosstabs
Hello there,
I'm quite new with R. Does anybody know a true variant in R of the Splus
function "crosstabs" to create contingency tables, with the possibility
of assigning a weight variable?
Thanx
Tim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help",...
2011 Sep 07
0
3-Way Crosstab using survey package
Hello,
I am wondering if it is possible, or what the correct way to code a three-way crosstab in R using the survey package?
I have been using the following code to complete two way crosstabs, but have not seen any three-way code.
Two-Way: svyby(~factor(a), ~factor(b), data, svymean)
Thanks!
Rachel
[[alternative HTML version deleted]]
2006 Jul 05
1
Crosstabs
Dear Users,
I'm a complete novice to R.
I need to do a crosstabs in R, but my data is almost completely
alphanumeric (with some variables scaled). The Table routine does not
seem to accept alphanumeric data. What should I do? Do I need to recode
it? How should I do that?
Thanks in advance,
Wilfred
2011 Apr 13
1
plotting line graphs for output from crosstabs function
Hi R-users,
This is a generic question, is there a way to plot a line graph for the output from crosstable function? one of the inputs to the crosstab function is categorical.
Taby --
[[alternative HTML version deleted]]
2009 Apr 07
2
newbie query: simple crosstabs
...table that shows the percentage
answering yes (coded as 1) across many, many binary response items. E.g.,
male q1.bin q2.bin q3.bin ...
0 0.6012 0.3421 0.9871 ...
1 0.7121 0.6223 0.0198 ...
I've tried various combinations of apply & cbind, but to no avail. It would
be easy in SPSS crosstabs, but darnit, I want to use R!
[[alternative HTML version deleted]]
2008 Feb 15
12
Transfer Crosstable to Word-Document
# Dear list,
# I am an R-beginner and
# spent the last days looking for a method to insert tables produced
# with R into a word document. I thought about SPPS: copy a table from
# an SPO-file and paste it into a word document
# (if needed do some formatting with that table).
# Annother idea was, to produce a TEX-file,
# insert it and make it a word-table.
# I found the following libraries, which
2009 Apr 24
4
omit empty cells in crosstab?
Perhaps this is a common question but I haven't been able to find the answer.
I have data with many factors, each taking many values. However, only
relatively few combinations appear in the data, ie have nonzero counts, in
other words the resulting table is sparse. Say we have 10 factors each with
10 levels. The result of table() would exceed the memory space (on a 32bit
machine). Is there
1998 Oct 19
0
Frequencies- and Crosstabs-Output like SPSS ???
...21.1 22.2 27.8
3 11 57.6 61.1 88.9
4 2 10.5 11.1 100.0
0 1 5.3 Missing
---- ----- -------
Total 19 100.0 100.0
Valid cases 18; Missing cases 1
2. An "extended-table-function" like SPSS CROSSTABS.
The R-table-function shows only the observed values:
> table(exam$sex, exam$tutor)
jane john
female 4 4
male 6 6
The "extended-R-table-function" should also shows
- the expected values
- the row percentages
- the...
2002 Feb 13
3
xtabs
Hi,
In Splus if I call the function crosstabs() the output is a contigency
table; in each cell of the table is printed: N, N/RowTotal,
N/ColTotal, N/Total. N is the number of observations in each cell.
The same call to xtabs() in R will produce the contigency table but the
only entry in each cell is N.
How can I get the same relative freque...
2005 Aug 30
2
crosstab for n-way contingency tables
Dear list.
New to R, I'm looking for a way of using crosstab to output low-dimensional (higher than 2) contingency tables (frequencies, per-cents by rows, % by columns, mean, quantiles....) I'm looking for something of the following sort
dataframe: singers,
categorical variates: voice category (soprano,mezzo-soprano, ...) , voice type( drammatic, spinto, lirico-spinto, lirico,
2003 Aug 12
2
Crosstabs
Hello all,
i think i am to silly. I have installed R 1.7.1 (2003-06-16). Installed
some packages like xtables ore xml. I tried out this to installing
packages. Then i tried to make a crosstable like i know it from spss.
They say in this list that it would be going.
I made a table in asci-format, seperated with tabs or blanks and than i
use something like this:
1998 Oct 21
0
Crosstabs
Karsten,
I have a function which might be too simple, but could be modified to
what you requested. It is called "xtab" and appears to run okay on my
version of R (0.61.2). The tar.gz file includes text coding for "xtab"
and "padding" which is called. I set up empty functions and read the
text code into the editor, although there is probably a better way.
Hope it