search for: vcdextra

Displaying 20 results from an estimated 29 matches for "vcdextra".

2011 Mar 23
2
system.file() to read a text file from a vignette
[Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as <<tv1,results=verbatim>>= tv.data<-read.table(system.file("data","tv.dat",package="vcdExtra")) head(tv.data,5) @ I was told that this now generates a warning for non-Rdata...
2010 Apr 15
0
[R-pkgs] vcdExtra 0.5-0 is released to CRAN
I'm pleased to announce the release of the vcdExtra package, v. 0.5-0 from R-Forge to CRAN, on its way to a CRAN server near you. vcdExtra was originally designed to serve as a sandbox for introducing extensions of mosaic plots and other visualizations for categorical data, particularly those that apply to (poisson surrogate) loglinear models f...
2013 Sep 12
6
declaring package dependencies
I received the following email note re: the vcdExtra package > A vcd update has shown that packages TIMP and vcdExtra are not > declaring their dependence on colorspace/MASS: see > > http://cran.r-project.org/web/checks/check_results_vcdExtra.html But, I can't see what to do to avoid this, nor understand what has changed in R devel...
2013 Mar 02
3
print method like print.anova()
I have a print method for a set of statistical tests, vcdExtra::CMHtest, for which I'd like to have more sensible printing of pvalues, as in print.anova(). [Testing this requires the latest version of vcdExtra, from R-Forge **|install.packages("vcdExtra", repos="http://R-Forge.R-project.org")|** ] With my current print method, I get r...
2010 Dec 16
1
defining a formula method for a weighted lm()
In the vcdExtra package on R-Forge, I have functions and generic methods for calculating log odds ratios for R x C x strata tables. I'd like to define methods for fitting weighted lm()s to the resulting loddsratio objects, but I'm having problems figuring out how to do this generally. # install.packages...
2010 Oct 25
2
extracting characteristics of datasets from data()
...ional information for each dataset than what is provided by data(), e.g., class() and dim() for datasets for which these are available. I'm stuck on using using lapply properly with objects, rather than the names of objects that I get from data() Example: > DS <- data(package="vcdExtra") > DS$results[,c("Item", "Title")] Item Title [1,] "Abortion" "Abortion Opinion Data" [2,] "Bartlett" "Bartlett data on plum root cuttings" [3,] "Caesar" "Risk Factors for Infection...
2010 Nov 30
1
warning creating an as.array method in a package
...loddsratio) S3method(dimnames, loddsratio) S3method(print, loddsratio) S3method(vcov, loddsratio) S3method(as.matrix, loddsratio) S3method(as.array, loddsratio) All my tests work correctly when run in the R console, but R CMD check gives me a perplexing warning: * checking whether package 'vcdExtra' can be installed ... WARNING Found the following significant warnings: Warning: found an S4 version of 'as.array' so it has not been imported correctly See 'C:/eclipse/vcdExtra.Rcheck/00install.out' for details. It's just a warning, so maybe I can ignore it, but I can&...
2010 Apr 13
2
Generating model formulas for all k-way terms
For the vcdExtra package, I'm exploring methods to generate and fit collections of glm models, and handling lists of such model objects, of class "glmlist". The simplest example is fitting all k-way models, from k=0 (null model) to the model with the highest-order interaction. I'm having trou...
2014 Oct 30
1
'library' or 'require' call not declared from: 'rgl'
I'm checking a new release of vcdExtra via win builder with R-devel 2014-10-29 r66897 and have run into a Warning I don't know how to fix. I have one S3 generic, mosaic3d() that uses rgl and don't want to have rgl always loaded via Depends:. Instead, the mosaic3d.default() method includes if (!require(rgl)) stop("rg...
2010 Nov 11
1
exploratory analysis of large categorical datasets
Dear List, I am looking to perform exploratory analyses of two (relatively) large datasets of categorical data. The first one is a binary 80x100 matrix, in the form: matrix(sample(c(0,1),25,replace=TRUE), nrow = 5, ncol=5, dimnames = list(c( "group1", "group2","group3", "group4","group5"), c("V.1", "V.2", "V.3",
2013 Aug 22
1
Confusion about Depends:, Imports:, Enhances:, import(), inportFrom()
In checking my vcdExtra package, the following NOTE newly appeared (R-Forge, using R version 3.0.1 Patched (2013-08-20 r63635)) Package in Depends field not imported from: ?gnm? These packages needs to imported from for the case when this namespace is loaded but not attached. In the DESCRIPTION file, I have Depe...
2010 Dec 09
1
warning creating an as.array method in a package
...3 methods, ... S3method(dim, loddsratio) S3method(dimnames, loddsratio) S3method(print, loddsratio) S3method(vcov, loddsratio) S3method(as.matrix, loddsratio) S3method(as.array, loddsratio) Yet, when I run R CMD check, R CMD build, etc. or even load the package, I get the warning, > library(vcdExtra) Loading required package: vcd Loading required package: MASS Loading required package: grid Loading required package: colorspace Loading required package: gnm Warning message: found an S4 version of ?as.array? so it has not been imported correctly > showMethods("as.array") Function:...
2013 Dec 17
1
ggplot2: stat_smooth for family=binomial with cbind(Y, N) formula
With ggplot2, I can plot the glm stat_smooth for binomial data when the response is binary or a two-level factor as follows: data("Donner", package="vcdExtra") ggplot(Donner, aes(age, survived)) + geom_point(position = position_jitter(height = 0.02, width = 0)) + stat_smooth(method = "glm", family = binomial, formula = y ~ x, alpha = 0.2, size=2) But how can I specify the formula for stat_smooth when the response is cbind(successes, fai...
2010 Dec 17
2
rgl: coordinating and saving viewpoints, zoom, scale for multiple images
...point and get an equivalent view of the new data/model. An example follows, but I don't know how to capture in code what I did manually to get graph 1 in the orientation, zoom and scaling to re-create in another session or another graph.... Which is why I'm asking for R-help. library(vcdExtra) HEC <- HairEyeColor[,c(1,3,4,2),] # graph 1 mosaic3d(HEC) # hand rotate, scale, then save orientation; make sure rgl window is not hidden #snapshot3d("HEC3D-1a.png", top=TRUE) M1a <- par3d("userMatrix") # try to make this reproducible, across sessions #> dput(M1a) #...
2014 Dec 08
2
CRAN packages mis-using \donttest : falsy
...owing is that the examples use undeclared packages: this > is showing on the CRAN check pages for packages > > Distance GLDreg RECA TreePar complmrob disposables egcm enigma > extrafont falsy ggplot2 imputeYn investr lava prodlim randomForestSRC > rbison separationplot shiny smoother vcdExtra > > With R-devel the \donttest examples can be run by R CMD check > --run-donttest: we have done that and found failures in packages most > of those above, plus > > BNSP DCGL EIAdata ExtDist FeedbackTS FlexParamCurve IsoGene MGLM > MsatAllele PRISMA RSurvey RandomFields Reporte...
2010 Dec 27
1
aperm() should retain class of input object
aperm() was designed for multidimensional arrays, but is also useful for table objects, particularly with the lattice, vcd and vcdExtra packages. But aperm() was designed and implemented before other related object classes were conceived, and I propose a small tune-up to make it more generally useful. The problem is that aperm() always returns an object of class 'array', which causes problems for methods designed for...
2019 Jan 04
2
Función mosaicplot() con alpha segun valor.
Feliz año a todos! Y al que sepa y tenga tiempo, una duda: Quiero hacer un análisis de distribución de léxico (supongo que da igual eso) mediante mosaicplot(), en particular me interesa que me muestre el peso de la distribución según una proporción que ya conseguí sacar; la de el uso de x termino en un espacio determinado. Ejemplo: Distribución de los términos, totales (tabla1) sitio1
2011 Sep 15
4
question about glm vs. loglin()
Dear R gurus, I am looking for a way to fit a predictive model for a contingency table which has counts. I found that glm( family=poisson) is very good for figuring out which of several alternative models I should select. But once I select a model it is hard to present and interpret it, especially when it has interactions, because everything is done "relative to reference cell". This
2012 Dec 18
2
Changing Variable Names In VCD
Hello: What is the most efficient way to change the plotted variable names in mosaic plots in the vcd package? Should one do a separate contingency table first, change the dimension names there and then pass that to mosaic? Or is there a way to do it simply within mosaic. I was thinking something like: mosaic(~var1+var2, labelling_args=list(varnames=c('newvar1', 'newvar2')) Simon
2014 Dec 08
0
CRAN packages mis-using \donttest : falsy
...s use undeclared packages: this > > is showing on the CRAN check pages for packages > > > > Distance GLDreg RECA TreePar complmrob disposables egcm enigma > > extrafont falsy ggplot2 imputeYn investr lava prodlim randomForestSRC > > rbison separationplot shiny smoother vcdExtra > > > > With R-devel the \donttest examples can be run by R CMD check > > --run-donttest: we have done that and found failures in packages most > > of those above, plus > > > > BNSP DCGL EIAdata ExtDist FeedbackTS FlexParamCurve IsoGene MGLM > > MsatAllele...