Displaying 20 results from an estimated 3000 matches similar to: "R Libraries for ORDINAL categorical data"
2002 Aug 11
1
Ordinal categorical data with GLM
Hello All:
I am looking for you help.
I am trying to replicate the results of an example found in Alan Agresti's
"Categorical Data Analysis" on pages 267-269. The example is one of a 2 x 2
cross-classification table of ordinal counts: job satisfaction and income.
I am able to get Agresti's results for the independence model (G^2 = 12.03
with df = 9) assuming as he does that
2002 Apr 11
14
Ordinal categorical data with GLM
Hello All:
I am trying to replicate the results of an example found in Alan
Agresti's "Categorical Data Analysis" on pages 267-269. The example is
one of a 2 x 2 cross-classification table of ordinal counts: job
satisfaction and income.
I am able to get Agresti's results for the independence model (G^2 =
12.03 with df = 9) assuming as he does that the data is nominal, but
2002 Jan 30
1
mosaicplot(formula, data)--- bugged?
I have been tinkering with mosaicplot() and friends as a way
of learning R. As part of this, I've written a pair.table()
method for mosaic matrices, and would like to extend mosaicplot
to work with loglin and logln (MASS) objects. I'm using
R 1.4.0 on Win 98.
I've been trying to figure out the formula interface, and think
there's a bug, but not sure how to find it, yet alone fix
1999 Apr 14
2
No LOGLM coefficients
Dear R-helpers,
Im trying to fit a Log-linear model on a dataset with bird counts from
60 sites over 14 years for 12 months each (factors for the models). One
of the aims is to predict the missing values in this dataset with model
predictions.
Ive first tried to work with GLM's, that worked fine except for models
with one or more interaction-terms. The GLMs run, run .. for hours. So I
2009 Feb 18
2
indicator or deviation contrasts in log-linear modelling
I am fairly new to log-linear modelling, so as opposed to trying to fit
modells, I am still trying to figure out how it actually works - hence I am
looking at the interpretation of parameters. Now it seems most people skip
this part and go directly to measuring model fit, so I am finding very few
references to actual parameters, and am of course clear on the fact that
their choice is irelevant for
1999 May 23
0
Bug in loglin with variable called "c" (PR#198)
Summary:
loglin will fail if there is a global variable called c. I have
fixed this for 0.64.2 and 0.65.
On Sat, 22 May 1999, Cor en Aylin wrote:
> Dear Brian,
>
> Using the mass library for R (the most recent port dated 16 may 1999) I
Could you give version numbers in such reports please: at the moment there
is an official version (5.3pl037) of MASS for R, plus a pre-release of MASS
2009 Jan 14
1
loglm fitting
Dear all,
sorry to bother you all with this but I've been trying to use the loglm in
MASS package (v2.8.0) and cannot get any sensible output.
I'm wondering am I doing something very foolish or missing something
obvious.
For example, I tried the documentation help(loglm) example - here's the
code
# Case 1: frequencies specified as an array.
sapply(minn38,
2013 Jul 06
0
fitting the null loglinear model with MASS::loglm??
The null loglinear model is an intercept-only model for log frequency,
log(f) = \mu
For a one-way table the test of the null model is the same as the
chisq.test.
This can be fit using loglin(), but I don't think there is any way to
specify this using MASS::loglm
> t1<- margin.table(Titanic,1)
> t1
Class
1st 2nd 3rd Crew
325 285 706 885
> loglin(t1, NULL)
0
2009 Feb 27
1
Ordinal Mantel-Haenszel type inference
Hello,
I am searching for an R-Package that does an exentsion of the Mantel-Haenszel test for ordinal data as described in Liu and Agresti (1996) "A Mantel-Haenszel type inference for cummulative odds ratios". in Biometrics. I see packages such as Epi that perform it for binary data and derives a varaince for it using the Robbins and Breslow variance method. As well as another pacakge
2004 May 05
4
Analysis of ordinal categorical data
Hi
I would like to analyse an ordinal categorical variable. I know how I can analyse a nominal categorical variable (with multinom or if there are only two levels with glm).
Does somebody know which command I need in R to analyse an ordinal categorical variable?
I want to describe the variable y with the variables x1,x2,x3 and x4. So my model looks like: y ~ x1+x2+x3+x4.
y: ordinal factor
2003 Jan 21
2
books on categorical data analyses
Dear All,
We are about to purchase the second edition of Agresti's "Categorical Data
Analysis" (my old copy of the first ed. of that wonderful book is falling
apart). I would appreciate suggestions about other comparable books which, if
possible, have examples using R/S code (instead of SAS).
Thanks,
Ram?n
--
Ram?n D?az-Uriarte
Bioinformatics Unit
Centro Nacional de
2010 Nov 08
1
unknown dimensions for loglm
Dear R-help community,
I am working with multidimensional contingency tables and I am having
trouble getting loglm to run on all dimensions without typing out each
dimension.
I have generated random data and provided output for the results I want
below:
d1.c1 <- rnorm(20, .10, .02)
d1.c2 <- rnorm(20, .10, .02)
d2.c1 <- rnorm(20, .09, .02)
d2.c2 <- rnorm(20, .09, .02)
d3.c1 <-
2000 Jul 25
1
glm and capture-recapture
Hello,
I am almost new in R, so perhaps my question will be silly.
I try to use R for analyzing capture-recapture data in epidemiology. A cancer registry has different sources of patients. We know in each list, patients already known in all other list. The aim is to use capture-recapture models for estimating the number of patients unknow of all the sources.
Because no order in sources, one
2011 Mar 16
1
Standardized Pearson residuals (and score tests)
Hi Peter and others,
If it helps, I wrote a small function glm.scoretest() for the statmod
package on CRAN to compute score tests from glm fits. The score test for
adding a covariate, or any set of covariates, can be extracted very neatly
from the standard glm output, although you probably already know that.
Regards
Gordon
---------------------------------------------
Professor Gordon K
2010 Apr 14
1
Sig differences in Loglinear Models for Three-Way Tables
Hi all,
I've been running loglinear models for three-way tables: one of the
variables having three levels, and the other two having two levels each.
An example looks like below:
> yes.no <- c("Yes","No")
> switch <- c("On","Off")
> att <- c("BB","AA","CC")
> L <- gl(2,1,12,yes.no)
> T <-
1999 Feb 18
1
[R] possible bug in loglm (PR#122)
Bug report: there is a problem with loglm (or some underlying code)
when used with updating within a function. For example, this code
works as expected, when used outside a function:
-------------------------------------------------
library(MASS)
2006 Nov 26
2
Fixed zeros in tables
Hello All R Users,
Function loglm() in library MASS can be cajoled to accomodate
structural zeros in a cross-classification table. An example from
Fienberg demonstrates how this can be done.
My question is: Can the function glm() perform the same task? Can
glm() estimate a log-linear model with fixed zeros like loglm()?
Thanks for your help,
Andrew
## Fienberg, The Analysis of Cross-Classified
2009 Oct 20
1
2x2 Contingency table with much sampling zeroes
Hi,
I'm analyzing experimental results where two different events ("T1"
and "T2") can occur or not during an experiment. I made my experiments
with one factor ("Substrate") with two levels ("Sand" and "Clay").
I would like to know wether or not "Substrate" affects the occurrence
probability of the two events. Moreover, for each
2002 Oct 10
4
Correspondence analysis/optimal scaling with ordinal variable
Dear R specialists,
I have a multivariate statistics question that I want to submit to
the R community (which conveys a very good statistical knowledge).
I need to perform an optimal scaling based on a discrete variable and
an ordinal variable. The discrete variable, Area, defines a
geographical area. The ordinal variable, EducationLevel, describes
the education level of individuals (the
2004 Jan 29
2
Loglienar models
Hello,
I'm planning to start using R. Before getting into it, I'd like to
ask a couple of questions. Does R carry out loglinear model analysis?
That is, will it provide the chi-squared goodness of fit test statistic
for a given hierarchical loglinear model? Maybe even do a model
selection procedure (like Brown's two-step procedure, or
forward/backward selection)? Thanks