Displaying 20 results from an estimated 3000 matches similar to: "(multiway) percentage tables"
2003 Mar 06
0
modifying ftable to allow percentages (wishlist) (PR#2606)
Full_Name: John Hendrickx
Version: 1.6.2
OS: Windows XP
Submission from: (NULL) (80.126.78.108)
(This is not a bug report but a request to add a feature to future versions of
R. Hope this is an appropriate place).
I'd like to suggest adding an option to ftable to allow percentages. It would be
easy to do and backwards compatible. Percentage tables are useful in educational
contexts, whereas
2003 May 14
1
mcl models, percentages
I've put two packages for R on my home page at
http://www.xs4all.nl/~jhckx/R/. The "pcnt" package is for multiway
percentage tables. I've posted a first effort called "ctab" on this
group and a request for enhancing "ftable" with percentages on the
wishlist.
The "mcl" package is for estimating multinomial logistic models using
conditional logistic
2012 Dec 17
2
Suggestion: 'method' slot for format.ftable()
Dear R-developers,
I would like to suggest a 'method' slot for format.ftable() (see an adjusted
'format.ftable()' below, taken from the source of R-2.15.2).
At the moment, format.ftable() contains several empty cells due to the way the
row and column labels are printed. This creates problems (= unwanted empty
columns/rows) when converting an ftable to a LaTeX table; see an
2013 Mar 05
0
Patch for format.ftable()
Dear expeRts,
Please find attached the .diff for a bug fix in R-devel 62124. format.ftable()
fails to format ftable()s correctly which have no row.vars or no
col.vars. That should work with the patch (the example code below also runs
correctly for all the (new) 'method's).
Cheers,
Marius
--8<---------------cut here---------------start------------->8---
(ft1 <- ftable(Titanic,
2004 Jun 22
1
Grouped AND stacked bar charts possible in R?
Good day all,
My statisticians want an R procedure that will produce grouped stacked 
barplots.  Barplot will
stack or group, but not both.  The ftable function can produce a table
of the exact form they want, but the barplot doesn't show all the
divisions we want.
For an example, here's the sample from the help file for "ftable:"
 
data(Titanic)
ftable(Titanic, row.vars = 1:3)
2008 Jul 02
1
exporting ftable
How can I export an ftable object in the same format that appears in R
command window?
For testing that i was using this example that is in help of this function.
## Start with a contingency table.
ftable(Titanic, row.vars = 1:3)
ftable(Titanic, row.vars = 1:2, col.vars = "Survived")
ftable(Titanic, row.vars = 2:1, col.vars = "Survived")
## Start with a data frame.
x <-
2011 May 27
0
RE How to convert an ftable object to a matrix including the row names?
Okay, great, thanks :-)
Marius
On 2011-05-27, at 10:56 , david.hajage at curie.net wrote:
> 
> Hi, 
> 
> Is this what you want ? 
> 
> ft <- ftable(Titanic, row.vars=1:3) 
> xtable(format(ft)) 
> 
> Best, 
> 
> david 
> 
> 
> Marius Hofert <m_hofert at web.de> 
> Envoy? par : r-help-bounces at r-project.org
> 27/05/2011 07:41
> 
> A
2008 Sep 02
3
ftables package, zero rows
dear all,
i'm just about to do some straightforward contingency tables using ftables (and ctab() for percents).
the problem:
factor "a" are regions, factor "b" are subregions. 
every region "a" consists of some subregions "b", but obviously not every subregion "b" is part of every region "a".
if i use the ftable() function, the
2006 Oct 22
2
cross tabs with percents?
-- apologies if this is a dup - i got a bounce saying the message was
unprocessed.
Is there a straightforward way to get a table with percents in the
cells rather than counts? I've looked at table, ftable, xtabs, and
ctab, which did the conversion but returned the results in a single
row without labels.
any suggestions are appreciated.
thank you.
2011 May 27
1
How to convert an ftable object to a matrix including the row names?
Dear expeRts,
What's the easiest way to convert an ftable object to a matrix such that the 
row names of the ftable object are shown in the first couple of columns of the
matrix? This is (typically) required, for example, when the final goal is to print 
the matrix via xtable.
Below is a rather complicated example of how to do it... 
Cheers,
Marius
## Goal: convert an ftable() to a
2008 Jun 05
2
power of a multiway ANOVA
dear all,
in the package pwr , there is the fonction power.anova.test which permit to
obtain the power for a one-way ANOVA...but I'm looking for a way to compute
the power of a multiway ANOVA.( find the 1-beta). Is it possible?
do you have some ideas ?
regards
	[[alternative HTML version deleted]]
2008 Jul 30
1
odds ratios in multiway tables (stratified)
Hi,
does anyone know of a function to calculate odds ratios in multiway
tables (stratified) (+ the other usual statistics involved)
i mean:
say we have a table r*c*d,
For every d (depth) we have a r*c table,
and in this table the odds ratio's are calculated for every 2*2 subtable
in it.
logically this function would look like):
ORs(multiwaytable)
or
ORs(data$var1r,data$var2c,data$var3d)
2009 Jul 03
2
table () for more variables
Dear  All,
I want to create a table for several variables. As example. I have a
dataframe with following data:
Gender            transport      driving
1                     0                 1
0                     1                 0
1                     0                 1
Now I want to create a table in the following form:
                                   Gender
                        
2005 Apr 12
0
New version of "catspec" package
I've uploaded a new version of "catspec" to CRAN. Catspec is for
estimating certain "special categorical" models. It also contains
"ctab", a function for creating one-way, two-way, and multi-way
percentage tables (nothing special there really). Ctab can now print
more than one percentage type, as well as table marginals.
The first special model in catspec is
2005 Apr 12
0
New version of "catspec" package
I've uploaded a new version of "catspec" to CRAN. Catspec is for
estimating certain "special categorical" models. It also contains
"ctab", a function for creating one-way, two-way, and multi-way
percentage tables (nothing special there really). Ctab can now print
more than one percentage type, as well as table marginals.
The first special model in catspec is
2017 Sep 21
4
List of occuring values
Dear all,
ftable produces a list of the frequencies of all occuring values.
But how about the occuring values?
How can I retrieve a list of occuring values?
How can I retrieve a table with both the list of occuring values and their respective frequencies?
Thank you in advance,
Yours, Ferri
2007 Jul 10
1
Lattice: vertical barchart
barchart(Titanic, stack=F) produces a very nice horizontal barchart. 
Each panel has four groups of two bars.
barchart(Titanic, stack=F, horizontal=F) doesn't produce the results I 
would have expected, as it produces this warning message:
Warning message:
y should be numeric in: bwplot.formula(x = as.formula(form), data = 
list(Class = c(1,
And it results in each panel having 22 groups of
2012 Jan 26
1
ftable.formula
I apologize in advance if this is the wrong forum for this
report/request, and for the fact that I have not read the code for
ftable.formula in any detail.
>From reading the documentation for ftable.formula, I expected that the
following two calls to ftable would produce the same results:
data(UCBAdmissions)
ftable(UCBAdmissions, row.vars = "Dept", col.vars = c("Gender",
2011 Jun 24
1
Converting an ftable (contingency table) to a dataframe in R
I am generating an ftable (by running ftable on the results of a xtabs command) and I am getting the following.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Var1? Var2
date ? ? ? ? ? ? ? ? group? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 
2007-01-01? ? ? ? ? q1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?1? ? 9
? ? ? ? ? ? ? ? ? ? ?q2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
2004 Mar 02
3
Margins on tables
It has long been a nuisance to me not being able to form margins on
multiway tables in a simple fashion, so i wrote margins().
In my opinion it should go into the base package. The code and the
documentation is in:
http://www.biostat.ku.dk/~bxc/R/margins/
Please help yourself, and enhance and rename as you see fit.
Bendix
----------------------
Bendix Carstensen
Senior Statistician
Steno