Displaying 20 results from an estimated 1000 matches similar to: "Missing panels in multipanel lme lattice/trellis"
2009 Oct 30
1
How to properly shade the background panels of an xyplot?
Dear R users,
this is a follow up of this message
http://tolstoy.newcastle.edu.au/R/e6/help/09/05/13897.html
I'm reproducing the core of it for convenience.
> //
> / data(Oats, package = "MEMSS") /
> / tp1.oats <- xyplot(yield ~ nitro | Variety + Block, /
> / data = Oats, /
> / panel = function(x, y, subscripts, ...) { /
2001 Feb 21
1
Gradient field from loess
I have a two-dimensional loess fit, and need to calculate the
gradient field from it. Even after looking at loess.c and loess.f,
I don't understand the meaning of the returned polynomial coefficients.
Or is the brute force method of using a tangential approx
to the fitted values the way to go?
Dieter Menne
---------------------------------------
Dr. Dieter Menne
Biomed Software
72074
2001 Feb 27
2
Remove columns by name data[-c("subj","drug")]
Is there an easy way to remove data frame columns
by name instead of by index? The following gives
the idea
remove<-c("subj","drug")
data[-remove]
I found a solution with a few evals and substitutes,
similar to that used in reshapeLong, but there must
be an easier way out.
Dieter
---------------------------------------
Dr. Dieter Menne
Biomed Software
72074 T?bingen
Tel
2001 Feb 23
1
as.formula and lme ( Fixed effects: Error in as.vector(x, "list") : cannot coerce to vector)
Using a formula converted with as.formula with lme leads
to an error message. Same works ok with lm, and with
lme and a fixed formula.
# demonstrates problems with lme and as.formula
demo<-data.frame(x=1:20,y=(1:20)+rnorm(20),subj=as.factor(rep(1:2,10)))
demo.lm1<-lme(y~x,data=demo,random=~1|subj)
print(summary(demo.lm1))
newframe<-data.frame(x=1:5,subj=rep(1,5))
2001 Oct 07
1
Bug in Deriv? (PR#1119)
deriv seems to have problems with a minus-sign before a bracket.
Below are four examples of the same function, the top one
is wrong, all others are correct (hopefully).
Rest of expression not shown, it is the same for all versions.
_
platform i386-pc-mingw32
arch x86
os Win32
system x86, Win32
status
major 1
minor 3.0
year 2001
month 06
day 22
language R
2001 Jan 17
1
Pinheiro/Bates Soybean nlme failure
Dear Mixed Effect Friends,
Somehow, R(1021, Windows) seem to run differently from S Plus:
The soybean example from Pinheiro/Bates on page 290 fails
in R. (Soybean1 is Soybean with the NA and "critical" case
removed. Same procedure with full Soybean).
> fm1Soy.lis<-nlsList(weight~SSlogis(Time,Asym,xmid,scal),data=Soybean1)
> fm1Soy.nlme<-nlme(fm1Soy.lis)
Error: Singularity
2002 Jun 20
1
Psychometric curves, two altnerative force choice, glm, and budbworms
Dear R-Listers,
to measure the psychometric curve of pitch discrimination, one sequentially
presents two tones of slightly different pitch to an observer (animal will
do), and asks "which is higher". The pschometric curve is the fraction of
correct responses plotted against the pitch difference. It passes through
50% (pure guessing) at zero and normally approaches 100% at large
2001 Dec 02
1
GLM with ranks as response variable
Dear R's,
I have a survey where customers rank a set of 5 packages for a product,
so the response variable looks like
a d b c
a c d b
d b a c
Predictors variables are 4 socio-economic parameters. I have modelled the FIRST
choice of each subject as a multinomial model, similar to the housing example in
MASS ch7.3, , but I would prefer to use the whole rank-set instead.
Can someone give me a
2001 Mar 13
1
Display grouping parameter in coplot
I try to display the grouping variable in coplot.
It work, but it's special solution and rather ugly.
Any better idea?
# Simulate my data frame
data(state)
x77<-data.frame(state.x77)
x77$region<-state.region
coplot(Life.Exp ~ Income | region,
data=x77, show.given=F, subscripts=T,
panel = function(x, y,subscripts, ...)
{
panel.smooth(x, y, span = 1., ...)
2001 Feb 04
1
quinModel S != R
Dear friends of nlme,
Running quinModel (Pinheiro/Bates page 380) on R (current release, windows)
gives:
Nonlinear mixed-effects model fit by maximum likelihood
Model: conc ~ quinModel(Subject, time, conc, dose, interval, lV, lKa,
lCl)
Data: Quinidine
Log-likelihood: -497
Fixed: lV + lKa + lCl ~ 1
lV lKa lCl
5.382 -0.273 2.470
Random effects:
Formula: list(lV ~ 1, lCl ~ 1)
2001 Mar 01
2
Individual rename of list items
I am confused by the logic of renaming:
# Rename individual list items?
Empl<-list(employee="Anna",spouse="Fred")
names(Empl)<-c("empl","spo")
names(Empl)
#[1] "empl" "spo"
# worked like a charm... but
names(Empl[1])<-"newempl"
# no error message, yet ....
names(Empl)
#[1] "empl" "spo"
#
2002 Jul 16
2
r-square for non-linear regression
We have extracted parameters from physiological measurements by fitting
SSlogis-like curves with nlsList and nlme.
We presented residuals plot in a paper, but a referee argues that these
cannot be included (too technical), and r-square values should be given
instead to compare the goodness of fit with those of other authors.
I remember that 30 years ago in my stat 101, I learned that r-square is
2002 May 27
1
nlme cross-over and fixed nested
I have problem getting the concept of a nested fixed variable into the nlme
scheme. I fear the question is very stupid. In the past I had asked this
before, and never got a reply (in other cases, the response was within
hours). I also checked the S-list, where several similar enquiries of other
people are orphaned.
We have a cross-over design, where patient are treated two weeks with
placebo,
2009 May 26
2
using lsoda() and nls() together
Thanks to Dieter Menne and Spencer Graves I started to get my way through
lsoda()
Now I need to use it in with nls() to assess parameters
I have a go with a basic example
dy/dt = K1*conc
I try to assess the value of K1 from a simulated data set with a K1 close to
2.
Here is (I think) the best code that I've done so far even though it crashes
when I call nls()
2008 Jan 19
0
batchfiles 0.4-0
batchfiles 0.4-0 consists of a set of Windows Vista
.bat, .hta and .pl files.
More information is available on the home page:
http://batchfiles.googlecode.com
CHANGES
- now tested with Vista exclusively (use 0.3-2 instead on XP)
- sweave.bat now has no dependencies on the other batch
files. With this change all .bat and .hta files now
have no dependencies except possibly for R.
-
2008 Jan 19
0
batchfiles 0.4-0
batchfiles 0.4-0 consists of a set of Windows Vista
.bat, .hta and .pl files.
More information is available on the home page:
http://batchfiles.googlecode.com
CHANGES
- now tested with Vista exclusively (use 0.3-2 instead on XP)
- sweave.bat now has no dependencies on the other batch
files. With this change all .bat and .hta files now
have no dependencies except possibly for R.
-
2005 Apr 06
2
par(mfcol=2, mfrow=3) equivalent for trellis
Dear friends of lattice,
I know how to position trellis plots with print(...,split,more=T) or
(...position).
Sometimes I wish I had something like the old "par(mfcol=2, mfrow=3)"
mechanism, where the next free viewport is automatically chosen. I tried
fiddling with grid-viewports, but could not find an easy solution.
Did I miss something?
Dieter Menne
2008 Dec 22
3
Convert ASCII string to Decimal in R (vice versa) was: Hex
Hi Dieter,
Sorry my mistake. I wanted to convert them
into Decimal (not Hexadecimal).
Given this string, the desired answer follows:
> ascii_str <- "ORQ>IK"
79 82 81 62 73 75
> ascii_str2 <- "FDC"
70 68 67
- Gundala Viswanath
Jakarta - Indonesia
On Mon, Dec 22, 2008 at 5:49 PM, Dieter Menne
<dieter.menne at menne-biomed.de> wrote:
> Gundala
2005 Feb 28
0
phpSerialize 0.8
New on CRAN: phpSerialize Version 0.8
Dieter Menne, dieter.menne at menne-biomed.de
Serializes R objects for PHP import into an associative array.
Main use is for building web pages with R-support.
Has mainly been tested with lm,lme, nlme and their summaries.
A web example is provide, showing
-- How to start R from php/Apache
-- How to pass variables from php to R via Environment
-- How to
2005 Feb 28
0
phpSerialize 0.8
New on CRAN: phpSerialize Version 0.8
Dieter Menne, dieter.menne at menne-biomed.de
Serializes R objects for PHP import into an associative array.
Main use is for building web pages with R-support.
Has mainly been tested with lm,lme, nlme and their summaries.
A web example is provide, showing
-- How to start R from php/Apache
-- How to pass variables from php to R via Environment
-- How to