Displaying 20 results from an estimated 2000 matches similar to: "lattice regression coefficients"
2009 Apr 22
1
plot.logistic.fit.fnc
Hello,
I can not get the function plot.logistic.fit.fnc() working....it
returns "Error: could not find function "plot.logistic.fit.fnc"".
Do I need to upload as specific package first? I am trying to check
the fit of a mixed logistic model.
Also, any advice for checking the assumption of independence in a
mixed logistic model?
Many thanks in advance,
Sarah Foster
2010 Sep 29
1
Trying to avoid loop structure
Dear R-helpers,
I'm trying to associate linear coefficients (intercept and slope) to tens of thousands of observations based on a table with benchmark values.
#####Example - Value table and their corresponding coefficients (intercept and slope)
coef = data.frame(cbind(st=c(1:5),b = runif(5,0.3,5),a = seq(0.5,5,1)))print(coef)
#Example of observations to be computedobs = runif(20,1,5)print(obs)
2009 Aug 18
1
aggregating values at discreet irregular time intervals into hourly values
Hello R users,
I'm a newby to R (and programming software at large) and I would need some help to sum up event data at discreet time and irregular time interval into a hourly frequency.
Here is an example of my time series frame (irregular time-serie object - irts in the tseries package):
time value
2008-12-19 19:11:03 GMT 1
2008-12-19 19:12:00 GMT 0
2008-12-19
2006 Jan 20
1
indexing within a function
Hello all,
I've got a large set of data consisting of 2 continuous numerical
variables, and 2 factors. I'm trying to write a function that will
draw scatter plots of the 2 numerical variables for various
combinations of the factors. The problem is that my function doesn't
seem to understand what I want it to do even though the command works
fine outside the function. Here is
2001 Mar 01
2
timeline for R-1.2.x where x>1?
> Date: Thu, 1 Mar 2001 08:52:09 -0500 (EST)
> From: Walter Tautz <wtautz@math.uwaterloo.ca>
Re: [Rd] timeline for R-1.2.x where x>1? Just curious as I am looking to update
our installation.
You can always find the current plans on developer.r-project.org.
That says
The latest release of R was 1.2.2 on February 26th, 2001. We might
have a 1.2.3 release mainly with fixes
2007 Apr 11
0
Error with corCompSymm and lme fit for repeated measures
Dear R Friends,
I need help with an error associated with corCompSymm in an lme fit.
I am using a mixed effects model to analyze a split-plot with
repeated measures and would like to fit with the compound symmetry
correlation structure. This problem doesn't occur when using
corAR1 or any of the other structures. I would greatly appreciate
help on how to solve this issue.
Here's my
2008 Mar 24
0
Error using augPred with nlme grouped data
Hello all,
I am having a problem using augPred after I have created an nlme object. My
data is 3933 rows long with no NA's, and is grouped with this function:
vanfem<-groupedData(mass~age.years|name, data=av.mex, labels=list(x="Age",
y="Mass"), units=list(x="(years)", y="(kg)"))
Under the grouping factor "name", this is a character
2007 Oct 22
1
Meta-analysis mixed model
I have a meta-analysis dataset which I would like to analyze as a mixed
model, where the y-variable is a measure of effect size, the random effect
is the study from which the effect size was extracted, and the fixed
effect is a categorical explanatory variable. The complication is that we
often have multiple estimates of effect size from a single study (e.g. the
experiment was repeated in
2007 Aug 21
1
quantile() returns a value outside the data range
Hello,
I am getting an unexpected result from quantile(). Specifically, the
return value falls outside the range of the data, which I wouldn't
have thought possible for a weighted average of 2 order statistics.
Is this an unintended accuracy issue or am I being too casual in my
comparison (is there some analogue of 'all.equal' for "<=")?
Small example:
> foo <-
2002 Mar 01
2
step, leaps, lasso, LSE or what?
Hi,
I am trying to understand the alternative methods that are available for
selecting
variables in a regression without simply imposing my own bias (having "good
judgement"). The methods implimented in leaps and step and stepAIC seem to
fall into the general class of stepwise procedures. But these are commonly
condemmed for inducing overfitting.
In Hastie, Tibshirani and Friedman
2009 Mar 13
1
lsfit w/ rank-deficient x
Dear R-devel,
It seems that lsfit incorrectly reports coefficients when the input matrix 'x' is rank-deficient, see the example below:
## here values of 'b' and 'c' are incorrectly swapped
> x <- cbind(a=rnorm(100), b=0, c=rnorm(100)); y <- rnorm(100); lsfit(x, y)$coef
Intercept a b c
-0.0227787 0.1042860 -0.1729261 0.0000000
Warning
2007 Jun 12
1
2 Trellis graphics question
1) I have a data that includes some "bad" data. I want to make a
trellis plot where each panel contains
a) A scatter plot of the "good" data
b) A scatter plot of the "bad" data in a different color
c) A best fit line of all the data, and
d) A best fit line of the "good" data.
I tried using xyplot and setting the "group" argument, but I'm
2009 Oct 25
1
lsfit residuals
I'm trying to extract the points above and below a particular lsfit. I
can only get the residuals from the original fit though.
x = runif(100, 0, 10)
plot(x)
abline(lsfit(1:100, test))
abline(lsfit(1:100, test + sd(test))) #I want the points above THIS
line.
Is there a way to use the coefficients from the fit to do this?
Thanks for any help.
2003 Jul 21
5
how to test whether two slopes are sign. different?
Not really r-specific:
Z = (b1 - b2) / SQRT ( SEb1^2 + SEb2^2)
-------Original Message-------
From: Gijsbert Stoet <stoet at volition.wustl.edu>
Sent: 07/20/03 09:51 PM
To: r-help at stat.math.ethz.ch
Subject: [R] how to test whether two slopes are sign. different?
>
> Hi,
suppose I do want to test whether the slopes (e.g. determined with
lsfit) of two different population are
2002 May 14
1
princomp
Hello experts,
as newcomer in pca, i have a question, concerning the princomp algorithm.
With a dataset "r" containing 18 "input" parameters and 1 "output" parameter
r[19], i got with the following fit
ls <- lsfit(r[1:18],r[19]); lsdiag <- ls.diag(ls); lsdiag$std.dev
a prediction error of:
[1] 8.879561
what is quite reasonable. If i take only two
2003 May 13
1
several regression lines in panel of xyplot (trellis graphics)
Dear r-help,
I need to draw xyplot() graphs with several regression lines:
one line for the whole range of x (the variable on the horizontal
axis) and two additional lines for subranges of x.
Is it possible to make first regression line (panel.lmline(x,y,...);)
to be drawn on the whole graph
and regression lines of the subsets to be drawn only over their subsets?
I have defined
2011 Jul 28
2
not working yet: Re: lattice overlay
Hi Dieter and R community:
I tried both of these three versions with ylim as suggested, none work: I
am getting only single (pch = 16) not overlayed (pch =3) everytime.
*vs 1*
require(lattice)
xyplot(Sepal.Length ~ Sepal.Width | Species , data= iris,
panel= function(x, y, subscripts) {
panel.xyplot(x, y, pch=16, col = "green4", ylim = c(0, 10))
panel.lmline(x, y, lty=4, col =
1997 Apr 30
1
R-beta: ls.print
ls.print produces error that I don't seem to be able to trace.
Output of the commands as follows: (hyeung is a 24x2 matrix of data)
-------------------------------------------------
> summary(hyeung)
x.1 x.2
Min. : 28.0 Min. : 10.0
1st Qu.: 72.0 1st Qu.: 87.5
Median : 86.5 Median : 92.5
Mean : 81.0 Mean : 82.5
3rd Qu.: 97.0 3rd Qu.:100.0
Max.
1997 Apr 30
1
R-beta: ls.print
ls.print produces error that I don't seem to be able to trace.
Output of the commands as follows: (hyeung is a 24x2 matrix of data)
-------------------------------------------------
> summary(hyeung)
x.1 x.2
Min. : 28.0 Min. : 10.0
1st Qu.: 72.0 1st Qu.: 87.5
Median : 86.5 Median : 92.5
Mean : 81.0 Mean : 82.5
3rd Qu.: 97.0 3rd Qu.:100.0
Max.
2009 Sep 28
1
xyplot & lmline: error message.
Hi, I am trying to produce an xyplot with a regression line. The data should
be represented as log/log but when I fit the lmline I receive an error
message - the plot is fine without the log transformation, but the then the
plot is meaningless. I know it must be something simple, but I just can't
see it. Hope someone can help...
Thanks.
xyplot(log(Pk)~log(k),data=rwpk,cex=1,