Displaying 20 results from an estimated 5000 matches similar to: "empty cells in ftable"
2006 May 08
1
ob.step$anova interpretation
hello
I built logistic regression model.
To model check I used stepAIC. But I don't know how it
is interpreted . I could not any find any explanation about it
For instance which model is preferable ? What are the critarias
to choose beter model
I will appreciate if you give me an explanation ?
models
---------
> lo1.step$anova
Stepwise Model Path
Analysis of Deviance Table
Initial
2003 May 30
1
cbind order
Hello
I need to use this command:
cbind(ftable(xtabs(cnt~geo+slp+con+hey,data=dt3))
hey is in count of success /failure value
but cbind gives failure/success counts. I want to change the order of
this cbind as success /failure counts.
for instance:
I want cbind to give counts as 32-4552 rather than 4552-32
what should I do ?
thanks in advance
Ahmet
TURKEY
2007 Apr 24
2
problem in tapply command
hello
when I entered following command, I got NA values for some catagories.
> tapply(slp_jeo2$slp,slp_jeo2$jeo,mean )
999 Ca Cka DCy Jh JKi Kk
14.06665 NA 14.60445 NA NA NA NA NA
KTa KTac Ku Kua Kus Ky Kyk ODe
NA NA NA NA NA NA
2008 Apr 24
2
changing format of a float value to another
hello
How can I change a vector's float value from ("1.085714e-01") format to
a simpler format (like 0.1xxx).
regards
--
Ahmet Temiz
Jeo. M?h.
Afet ??leri Gen. Md.l???
Deprem Ar. D.
Ahmet Temiz
Geo. Eng.
General Dir. of
Disaster Affairs
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
2008 Mar 12
1
ftable and xtabs
Hoping someone can help me with xtabs and ftable. I'm trying to get a pair
of ftables (possibly more) next to each other. For example:
> dunhill_lights_xtab<-ftable(xtabs(grossedupobs ~ gender+age_group +
dunhill_lights, data = ciggs))
> dunhill_lights_xtab
dunhill_lights No Yes
gender age_group
Female
2020 May 14
0
justify hard coded in format.ftable
Thanks for the links. I agree that such a feature would be a nice addition, and could make ftable even more useful.
In the same spirit, I think it could be useful to mention the undocumented base::as.data.frame.matrix function in documentation of table and xtabs (in addition to the already mentioned base::as.data.frame.table). The conversion from ftable/table/xtabs to data.frame is a common task
2003 Mar 14
3
logistic regression
Hello
1*
I need to use logistic regression. But
my data file is very huge( appx. 4 million line).
R doesn't handle such a file.
What can I do ?
------------------------
2*
So, I thought whether I could perform sta. analyses on summarised
data (count of yes/no values) of the huge file. Normally, summarised
data file short and R could handle it.
Then I used this command.
> lo
2020 May 14
0
justify hard coded in format.ftable
One can use as.data.frame(as.matrix(tab)) to avoid calling
as.data.frame.matrix directly
(although I find I do use as.data.frame.matrix anyways sometimes even
though it is generally
better to call the generic.).
Also note that the various as.data.frame methods do not address the examples
in the SO links I posted which is why I mentioned it.
On Thu, May 14, 2020 at 9:22 AM SOEIRO Thomas
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 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
2008 Jan 09
0
formating ftable
Hi all,
I am using ftable and xtabs to get total counts of species per location per hight category (understory, midstory and overstory). i can save the data in almost the format i would like it to be - but not quite. Here it is an example of what i get:
x - is a dataframe with the following columns: LocationID, Species, PercentCover, Category
where Category tells if the Species belongs to
2008 Jan 10
0
formatting ftable
Hi all, I am using ftable and xtabs to get total counts of species per location per hight category (understory, midstory and overstory). i can save the data in almost the format i would like it to be - but not quite. Here it is an example of what i get: x - is a dataframe with the following columns: LocationID, Species, PercentCover, Categorywhere Category tells if the Species belongs to
2001 Dec 11
1
how can i have the total for each level using table,ftable,xtabs etc. etc. ?
I have a list with four fields and 3500 records, from a MySQL table.
How can i have the total for each level using table, ftable, xtabs?
ex:
print(ftable(table[,"field1"]~table[,"field2"]))
thanks
Danilo Maurizio
Veneto Lavoro - Area Osservatorio -
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read
2001 Sep 05
3
Bug in ftable?? (Was: Two-way tables of data, etc)
Further to the discussion between Murray Jorgensen and Brian Ripley,
it seems to me better to choose tabulations that will not come and bite
you. Suppose your data are sligtly irregular, e.g. (for the sake of
the argument):
data( warpbreaks )
warpbreaks$variant <- rep( 1:5, len=54 )
attach( warpbreaks )
tb <- table( wool, tension, variant )
tb
# in this case you would like to see:
tp
2001 Sep 05
3
Bug in ftable?? (Was: Two-way tables of data, etc)
Further to the discussion between Murray Jorgensen and Brian Ripley,
it seems to me better to choose tabulations that will not come and bite
you. Suppose your data are sligtly irregular, e.g. (for the sake of
the argument):
data( warpbreaks )
warpbreaks$variant <- rep( 1:5, len=54 )
attach( warpbreaks )
tb <- table( wool, tension, variant )
tb
# in this case you would like to see:
tp
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,
2020 May 15
0
ftable <-> data.frame etc {was "justify hard coded in format.ftable"}
>>>>> Gabor Grothendieck
>>>>> on Thu, 14 May 2020 06:56:06 -0400 writes:
> If you are looking at ftable could you also consider adding
> a way to convert an ftable into a usable data.frame such as
> the ftable2df function defined here:
> https://stackoverflow.com/questions/11141406/reshaping-an-array-to-data-frame/11143126#11143126
> and there
2014 Jan 10
0
proposal: stats::as.matrix.ftable method
Following some discussion on R-help, I'd like to propose that an
as.matrix method be added
to those available for ftable objects. The reason for this is that
there are a variety of situations
where one needs to flatten a 3+ way table, but then use that for
analysis as a matrix, not just for
pretty-printing. There is an as.table method to turn the result back to
a table, but an as.matrix
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
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
2006 Jul 15
1
Some problems with latex(ftable)
The ftable structure is not an ordinary matrix. Instead, it has the
body of the table with several cbind- and rbind-ed rows and columns of
label information. The example in ?ftable has two row factors and two
column factors.
Continuing with the example in ?ftable, enter
tmp <- ftable(mtcars$cyl, mtcars$vs, mtcars$am, mtcars$gear, row.vars = c(2, 4),
dnn =