Displaying 20 results from an estimated 6000 matches similar to: "plot(all.effects)"
2007 Apr 02
2
Why does lmList() fail when lm() doesn't?
Dear r-helpers,
Can anyone suggest why lm() doesn't complain here:
summary(osss.lm1 <- lm(logOdds ~ c.setSize %in% task, data = osss))
whereas in package:nlme (and in package:lme4)
osss.lmL <- lmList(logOdds ~ c.setSize %in% task | subj, data = osss)
# Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") :
# contrasts can be applied only to factors with 2 or more
2007 Nov 23
0
Mutual information
Dear R helpers,
I have a data frame
> summary(emPat)
pairE subj pattern
far-near : 18 sub1 : 37 urb :123
long-short : 18 sub2 : 37 bpb : 72
supported-unsupported: 18 sub3 : 37 prp : 67
large-small : 18 sub4 : 37 brb : 64
dense-sparse : 18 sub5 : 37 unp : 62
2006 Oct 06
1
glm and plot.effects
Dear R-helpers,
I don't see a difference between the following two plots of effect
objects, which I understand should be different. What am I missing?
require(doBy)
require(effects)
data(budworm)
m1 <- glm(ndead/20 ~ sex + log(dose), data=budworm, weight=ntotal,
family=binomial)
m1.eff <- all.effects(m1)
plot(m1.eff, rescale.axis = FALSE, selection = 2, main = 'rescale =
2006 Nov 03
0
CI -- fixed effects -- response -- mixed models
Dear Friends,
I have been following the discussions of mixed-effects models with
some confusion, and I realize that much of this is work in progress,
and that much of the discussion is beyond my knowledge of statistics.
My question is simple, though: Is there a set of commands that will
produce an output equivalent to the exceedingly useful
predict(bl.lm, newdata = bl.new, type =
2006 Nov 28
1
Slight discrepancy between predict.lm() and all.effects()
In the course of exploring response prediction, I stumbled upon a
small discrepancy between the CIs produced by predict.lm() and
all.effects()
require(mlmRev)
require(effects)
hsb.lm <- lm(mAch ~ minrty * sector, Hsb82)
hsb.new <- data.frame(
minrty = rep(c('No', 'Yes'), 2),
sector = rep(c('Public', 'Catholic'), each = 2))
hsb.eff <-
2006 Oct 08
1
Simulate p-value in lme4
Dear r-helpers,
Spencer Graves and Manual Morales proposed the following methods to
simulate p-values in lme4:
************preliminary************
require(lme4)
require(MASS)
summary(glm(y ~ lbase*trt + lage + V4, family = poisson, data =
epil), cor = FALSE)
epil2 <- epil[epil$period == 1, ]
epil2["period"] <- rep(0, 59); epil2["y"] <- epil2["base"]
2012 Apr 11
1
Problem with effects package
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] grid datasets splines utils stats
[6] graphics grDevices methods base
other attached packages:
[1] effects_2.1-0 colorspace_1.1-1
[3] nnet_7.3-1
2013 Mar 25
3
nested 'while' loops
Hi everyone,
I'm using the following code to go over every element of a data frame (row
wise). The problem I am facing is that the outer 'x' variable is not
incrementing itself, thus, only one row of values is obtained, and the
program does not proceed to the next row.
This is the code:
while(x<=coln)
{
while(y<=rown)
{
n<-as.numeric(df[[y]][x]);
2008 Feb 10
2
grep etc.
Dear R-helpers,
How do I transform
v <- c('insd-otsd', 'sppr-unsp')
into
c('insd--otsd', 'sppr--unsp')
?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
McCormick Road Charlottesville, VA 22903
2005 Aug 27
2
Defining an ex-gaussian PDF
How does one define PDFs as yet undefined in R, such as the ex-
gaussian, the sum of two RVs, one exponential, one Gaussian? The PDF
would then be the convolution of an exponential PDF, dexp(), and a
normal, dnorm().
Kindly cc me in your reply to r-help.
Thanks,
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400
2008 Jan 02
1
Random Bernoulli sequences with given point-biserial correlation?
Dear R-listers,
Can someone suggest a method for generating a finite Bernoulli
sequence that is likely to have a given point-biserial correlation
with an existing Bernoulli sequence?
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room 102 Gilmer Hall
2006 Oct 07
1
Installing Lindsey's packages
Dear r-helpers,
I downloaded http://popgen.unimaas.nl/~jlindsey/rcode/rmutil.tar (it
was originally .tgz, but got unzipped by my browser).
Can anyone give me detailed instructions on installing this and
Lindsey's other packages on R version 2.4.0 (2006-10-03)---(powerpc-
apple-darwin8.7.0, locale: C)?
_____________________________
Professor Michael Kubovy
University of Virginia
2007 Apr 26
1
xyplot() and controlling panel.polygon()
Dear R-helpers,
How do I tell panel.polygon what greoup and panel it applies to whithin
xyplot(y ~ x | c, groups = g
panel = function(x, y, groups, ...){
panel.polygon(x = xpol[c, g], y = ypol[c, g], default.units
= 'native')
panel.xYplot(x, y, groups, ...)
llines(x = c(1, 6), y = c(-24.283333, 35.941667), lwd = 2, lty =
3, col = 4)
}
x[c, g] and y[c, g] describe
2007 Apr 21
1
Changing appearance of band edges in xYplot()
Dear R-helpers,
I would like the bands in an xYplot() to be gray without dark edges.
I've tried playing around with col.bands, but that seems not to
affect the edges, although changin col.fill does change the fill as I
would expect.
I would appreciate pointers.
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box
2006 Mar 06
1
JGR doesn't launch after updating to R 2.2.1
Dear r-helpers,
After updating to R version 2.2.1, 2005-12-20, powerpc-apple-
darwin7.9.0 (from binary), JGR wouldn't launch. I then deleted
everything I could find related to JGR, and reinstalled it from the
latest binary. Both R and JGR are installed in /Applications/
\~LocalApps/mathStat/.
Advice on how to identify the source of the problem?
My machine:
Machine Name:
2007 Feb 18
1
Suppressing \newcolumntype{} declaration in latex.default() in Hmisc
Dear r-helpers,
When use latex() on a matrix, I set the option dcolumn = T. As a
result, in front of each tabular I get
\newcolumntype{.}{D{.}{.}{-1}}
The LaTeX compiler complains about these multiple redeclarations.
_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
Parcels: Room
2007 Mar 09
1
Problem with ci.lmer() in package:gmodels
Dear Friends,
Please note that in the following CI lower > CI higher:
> require(lmer)
> require(gmodels)
> fm2 <- lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject),
sleepstudy)
> ci(fm2)
Estimate CI lower CI upper Std. Error p-value
(Intercept) 251.66693 266.06895 238.630280 7.056447 0
Days 10.52773 13.63372 7.389946 1.646900
2008 Oct 06
1
Color of title in legend()
Dear R-helpers,
This produces a red title. How do I make it black, without making the
labels black?
legend(title = 'Channel Integration', 0.7, 0.3,
c('loudness','luminance'), col = c('red', 'blue'), text.col = c('red',
'blue'), lty = 1, xjust = 0.5, bty = 'n')
_____________________________
Professor Michael Kubovy
University
2009 May 05
1
Find cyclically identical binary sequences
Dear R-helpers,
I need to generate all the binary sequences of length n (here n = 8)
that start with 1 and have no fewer than two of each digit, and are
not cyclic permutations of each other. Here is what I have done:
len <- 8
df <- as.data.frame(numeric(2^(len - 1)) %o% numeric(len))
require(partitions)
for (i in 1:2^(len - 1)) df[i, ] <- binary(i, dim = len)[[1]]
df <-
2006 Apr 14
1
Dotplot x-axis
Here's a small dataset:
type <- c('hierarchical','partial','single','complete','single
+hierarchical','single+partial','partial+hierarchical','single+partial
+hierarchical')
freq <- c(1455,729,688,65,29,28,16,17)
lodds <- log(freq/(3027 - freq))
dotplot(type~lodds)
I would like to have the x-axis have ticks at nice,