similar to: newbie query: simple crosstabs

Displaying 20 results from an estimated 700 matches similar to: "newbie query: simple crosstabs"

2002 Jul 11
0
lattice and crosstabs with empty cells
Suppose you have a dataframe with two factors, but not all the factor levels appear together. For instance: stuff<- structure(list(fac1 = structure(c(2, 1, 2, 2), .Label = c("down", "up"), class = "factor"), fac2 = structure(c(1, 2, 1, 2), .Label = c("left", "right"), class = "factor"), x = c(1, 1, 2, 2), y = c(1, 2, 2, 1)),
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,
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 examples of the required output). If there isn't such a function already
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 "body", not the subject !) To:
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",
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, Room 315 Ann Arbor, Michigan 48104-2321 (734) 647-5381
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
2012 Apr 04
0
crosstabs and histograms with flexible binning of dates
Hi, First, thank you to Duncan Mackay for getting me started processing dates with 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
1998 Oct 19
0
Frequencies- and Crosstabs-Output like SPSS ???
[Delayed and reposted by list maintainer due to not passing through spam filter.. MM] Hello, I am looking for two R-functions that could generate an Output like SPSS. 1. An equivalent function for (SPSS) FREQUENCIES which generate something like this: Valid Cum Value Frequency Percent Percent Percent 1 1 5.3 5.6 5.6
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]]
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
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:
2015 Oct 22
2
C_LogLin (stats/loglin)
Hi everyone, I have a question regarding a C function of the "stats" package in R. I tried to understand the ?loglin? basic function of the ?stats? package implemented in R. The implemented function itself runs without any problem (perhaps see sample). When I ran it line by line it stopped at the lines 23-24 of the loglin-function; (the following line): z <- .Call(C_LogLin,
2012 Feb 26
6
loop for a large database
Yes, I am a newbie. I have a data.frame (MyTable) of 1445846 rows and 15 columns with character data. And a character vector (MyVector) of 473491 elements. I want simply to get a data.frame with the count of how many times each element of MyVector appears in MyTable. I've tried a loop with : for (i in 1 : length (myvector)) sum (MyTable== i) but it crashes my computer. I've also
2010 Jul 26
4
using string variable as order() function argument
Hello, In my script I would like to use a loop, which sorts the dataframe according to different columns, pointed by the string variable. id col1 col2 col3 1 10 0 4 8 2 11 1 2 2 3 12 0 8 3 4 13 0 5 5 Usually the order() function can be used like this: sorted = mytable**[order(column3) , ] which results in properly sorted table: **
2002 Jul 12
2
Crosstabs in R
Before I reinvent the wheel, I have need for a relatively straightforward crosstabulation (2 x n) function. I know that R has table(), ftable(), xtabs(), and summary(xtabs()), but none of these produce a fully "tricked" out cross-tabulation with marginal totals, expected cell frequencies, and an array of statistics about the contingency table. Is there a more complete (something
2006 Mar 06
4
Contingency table and zeros
Hello, Let's assume I have a vector of integers : > myvector <- c(1, 2, 3, 2, 1, 3, 5) My purpose is to obtain the cumulative distribution of these numerical data, i.e. something like : value nb_occur. <=1 2 <=2 4 <=3 6 <=4 6 <=5 7 For this, I create a table with ; > mytable <- table(myvector) 1 2 3 5 2 2 2 1 However, table() returns an array
2007 May 12
4
Multiply and format with thousands separator
I have just started with Ruby and Rails and am still greatly confuse, finding the usual tutorials not much help. What I want to do is take two numbers from my database, multiply them together and display them in a list with a comma for the thousands separator. This would be very easy to do in a spreadsheet, so I assumed it would be easy to do in Ruby on Rails but I can''t work out how. I
2009 Oct 16
1
Frequencies, proportions & cumulative proportions
Dear R-Helpers, I've looked high and low for a function that provides frequencies, proportions and cumulative proportions side-by-side. Below is the table I need. Is there a function that already does it? Thanks, Bob > # Generate some test scores > myValues <- c(70:95) > Score <- ( sample( myValues, size=1000, replace=TRUE) ) > head(Score) [1] 77 71 81 88 83 93 > >
2007 Apr 20
2
Caching of database values
If do something like this: dbObj = MyTable.find_by_id(5) a = dbObj.name b = dbObj.name How many times will an SQL call be made to get the value of MyTable.name for id 5? In other words, are the values for dbObj cached in the object? Is there a way of controlling that? (I can imagine that sometimes you might not want to cache them if you wanted to be sure of having the latest