Displaying 20 results from an estimated 2000 matches similar to: "weighting nlme in multivariate outcome"
2008 Oct 06
2
ignore error in for-loop
Hi all,
Can anybody tell me what to do in case an error occurs inside a
for-loop and I don't want the program to exit the loop? Rather
instead I would like it to just go to the next number in the loop and
try again with the new number. Is there any function like "on error
go back to" or "skip error" ... ?
Thanks in advance,
Erich
Erich STRIESSNIG
IIASA
2001 Aug 24
3
statistical mode function
Hello R-users,
I am aware that this is a very basic question, but still... Since mode()
function is reserved for something else, is there a function to calculate
statistical mode for a vector or a matrxi?
i.e. mode.function(c(1,2,2,2,3,3))=2
Thanks in advance,
Elena Moltchanova
Elena MOLTCHANOVA
IIASA
International Institute for Applied Systems Analysis
A-2361 Laxenburg, Austria
E-Mail:
2001 Aug 07
2
image() colors
Hi, everybody!
I am currently dealing with spatial estimation and thus writing some
smoothing algorithms. My question concerns the graphical output. I would
like my function to produce a picture of input data (X) and of estimation
results(Y). Both, X and Y are categorical variables which can take values
1,2,...,Cl. So, basically I write
foo<-function(){
....
2001 Jul 16
0
partitioning a space
Hello, everybody!
I have subscribed to the list only recently, although I've been actively
using R since February. I found it very useful and very flexible and I hope
to learn to use it better. My current problem concerns spatial statistics.
I need to partition a regular rectangular grid into given number of
subsets. For example for a 5*5 grid with 3 subsets I could have:
1 1 1 2 2
1 1 2
2009 Apr 06
1
nlme weighted
Dear R-expert
I'm fitting a non linear model (energy allocation model to individual
growth data) using your nlme routine. For each individual I have thus a
number of observations (age and size) to which I fit the nonlinear
function, with random effects for the individuals on the estimated
parameters (individual as the grouping factor). The sampling of these
individuals was stratified (size
2002 Mar 12
0
Case weights in nlme models
Greetings-
I am in the process of constructing a nonlinear model using nlme. The
model is attempting to fit a nested data structure from some
public-opinion data (the data are from individuals nested within
organizations).
The question I have is fairly simple (I hope). The data were collected in
two stages: a 15,000-subject randomly-sampled telephone interview (the
SCREEN), with 2,517 subjects
2003 Jan 10
0
Thanks: Re: count levels per factor level
Dear Lockwood,
As you can see, I'm a beginner...
But thank you very much!
Sincerely,
Tord
Quoting "J.R. Lockwood" <lockwood at rand.org>:
> how about
>
> buskartant$buskartant <- sapply( group.list, function(x)
> sum(!is.na(unique(x))) )
>
> OR
>
> buskartant$buskartant <- sapply( group.list, function(x)
> length(unique(x[!is.na(x)])) )
2003 Oct 27
3
expanding factor with NA
I have a factor (with "n" observations and "k" levels), with only
"nobs" < n of the observations not missing. I would like to produce a
(n x k) model matrix with treatment contrasts for this factor, with
rows of NAs placeholding the missing observations. If I use
model.matrix() I get back a (nobs x k) matrix. Is there an easy way
to get the (n x k) without
2002 Sep 09
1
getting variable names into formulas
Hello,
I have a dataframe with several hundred variables. I would like to
explore updates of some baseline lme fit by including each of some
subset of these variables, one at a time. For various reasons it is
inconvenient to rely on the positions of the numbered columns in the
dataframe. Here is what I want to do:
mod.baseline<-lme(fixed=foo,data=dat,random=bar)
for(thisvar in vars){
2004 Oct 06
1
odd behavior of summary()$r.squared
I may be missing something obvious here, but consider the following simple
dataset simulating repeated measures on 5 individuals with pretty strong
between-individual variance.
set.seed(1003)
n<-5
v<-rep(1:n,each=2)
d<-data.frame(factor(v),v+rnorm(2*n))
names(d)<-c("id","y")
Now consider the following two linear models that provide identical fitted
values,
2003 Jun 19
2
Fitting particular repeated measures model with lme()
Hello,
I have a simulated data structure in which students are nested within
teachers, and with each student are associated two test scores. There
are 20 classrooms and 25 students per classroom, for a total of 500
students and two scores per student. Here are the first 10 lines of
my dataframe "d":
studid tchid Y time
1 1 1 -1.0833222 0
2 1 1
2003 May 11
1
NLME - multilevel model using binary outcome - logistic regression
Hi!
I'm pretty raw when working with the R models (linear or not).
I'm wondering has anybody worked with the NLME library and dichotomous
outcomes.
I have a binary outcome variable that I woul like to model in a nested
(multilevel) model.
I started to fit a logistic model to a NLS function, but could not suceed. I
know there are better ways to do it in R with either the LRM or GLM wih
2002 Aug 26
1
Win2K: "access denied" from samba printer
Dear list members,
we are running samba 2.2.3a-6 with debian woody.
Printing from win98, NT4.0 AND two win2k PC works,
but with two other win2k PCs printing is not possible:
The following german error Message is displayed in the win2k
printer configuration: "Zugriff verweigert; kein Verbindung m?glich"
The english translation could be something like this:
"access denied; no
2002 Aug 29
8
lme() with known level-one variances
Greetings,
I have a meta-analysis problem in which I have fixed effects
regression coefficients (and estimated standard errors) from identical
models fit to different data sets. I would like to use these results
to create pooled estimated regression coefficients and estimated
standard errors for these pooled coefficients. In particular, I would
like to estimate the model
\beta_{i} = \mu +
2006 Sep 18
0
2007 Computing/Graphics Student Paper Competition
Statistical Computing and Statistical Graphics Sections
American Statistical Association
Student Paper Competition 2007
The Statistical Computing and Statistical Graphics Sections of the ASA
are co-sponsoring a student paper competition on the topics of
Statistical Computing and Statistical Graphics. Students are
encouraged to submit a paper in one of these areas, which might be
original
2007 Sep 25
0
Announcement: 2008 ASA Computing/Graphics Student Paper Competition
Statistical Computing and Statistical Graphics Sections
American Statistical Association
Student Paper Competition 2008
The Statistical Computing and Statistical Graphics Sections of the ASA
are co-sponsoring a student paper competition on the topics of
Statistical Computing and Statistical Graphics. Students are
encouraged to submit a paper in one of these areas, which might be
original
2008 Oct 17
0
Announcement: 2009 ASA Computing/Graphics Student Paper Competition
Statistical Computing and Statistical Graphics Sections
American Statistical Association
Student Paper Competition 2009
The Statistical Computing and Statistical Graphics Sections of the ASA
are co-sponsoring a student paper competition on the topics of
Statistical Computing and Statistical Graphics. Students are
encouraged to submit a paper in one of these areas, which might be
original
2008 Aug 01
1
Major difference in the outcome between SPSS and R statisticalprograms
First off, Marc Schwartz posted this link earlier today, read it.
http://cran.r-project.org/doc/FAQ/R-FAQ.html#Why-are-p_002dvalues-not-di
splayed-when-using-lmer_0028_0029_003f
Second, your email is not really descriptive enough. I have no idea what
OR is, so I have no reaction.
Third, you're comparing estimates from different methods of estimation.
lmer will give standard errors that
2008 Dec 28
0
Roig Parals
This is a great wine from L'Empurd?, Spain. If you want to know more information contact:
Direction: C/ Garriguella 8
Town: Mollet de Peralada
Comarca: Alt Empord?
CP: 17752
Tel?fon: 972634320
It's the best wine I've ever seen.
2007 Oct 19
0
Announcement: 2008 John Chambers Statistical Software Award
John M. Chambers Statistical Software Award - 2008
Statistical Computing Section
American Statistical Association
The Statistical Computing Section of the American Statistical
Association announces the competition for the John M. Chambers
Statistical Software Award. In 1998 the Association for Computing
Machinery presented its Software System Award to John Chambers for the
design and