Displaying 20 results from an estimated 3000 matches similar to: "Best way to store negative indexes"
2004 Dec 13
2
lists within a list / data-structure problem
Dear all,
this is a rather basic question; i am not sure how to structure my data
well:
I want to extraxt various measures from my raw-data. These measures are
of different sizes, so I decided to store them in a list, like:
run1 <- list(Dom = (my_vector), mean = (my_single_number))
I can do that in a for loop for 40 runs, ending up with 40 lists: run1,
run2, ..., run40.
To have all the
2011 Aug 24
3
Efficient way to Calculate the squared distances for a set of vectors to a fixed vector
I am pretty new to R. So this may be an easy question for most of you.
?
I would like to calculate the squared distances of a large set (let's say 20000) of vectors (let's say dimension of 5) to a fixed vector.
?
Say I have a data frame MY_VECTORS with 20000 rows and 5 columns, and one 5x1 vector y. I would like to efficiently calculate the squared distances?between each of the 20000
2005 Jul 24
2
indexing a vector starting from 0
Hi All,
I would like to ask if it possible to start indexing a vector from 0:
x = 1:10
y = c(0,0,3,4,5,6,0,8,9,10)
I need to use y as an index to extract the values of x, BUT I cannot  
cull/transform the 0s. What I would like is to start counting the  
elements of x 0:9 rather than 1:10. Would this be at all possible?
Regards,
Federico Calboli
--
Federico C. F. Calboli
Department of
2011 May 15
1
pls help: lattice graph with both negative and positive value, x and y cross at 0 and negative value bars are plotted just oppositive direction in contrast to positive
Dear R experts:
Here is my problem:
#Data 1
Y <- c(0.5, 0.1, 0.5, 1.3, 1.4, 1.6, 1.65, 2.4, 2.6, 3.4, 3.6, 4.3, 4.42,
4.8, 4.7, 3.4, 3.3, 2.8, 2.8, 1.2, 1.1, 0.5, 0.2, 0.1, -0.2, -1.5, -2.5,
-1.3, -0.5, -0.1)
X <- seq(1:30)
X1 <- c(rep("T1", 24), rep("T2", 6))
dat1 <- data.frame(Y, X, X1)
require(lattice)
mcol <- c("green", "red")
2007 Aug 27
0
Negative numbers in range searches
I have been trying to get negative numbers to work in range searches.  This
is for lat/lon in a geographic search.  Obviously I could find workarounds,
but it seems like this should work.
If I use a straight negative number, like this [-200 -100] it will come up
empty.  If I escape the - with a backslash, it works sometimes, but not
always, but only if I REVERSE the numbers, e.g. [\-100 \-200]. 
2005 Dec 17
0
Does Gruff support negative data?
Gruff''s default theme is eye-catching, however, I haven''t found a way
to let it present negative data correctly(as seen in the attached).
Gruff''s document is also a bit old (v0.4 vs current v0.7). Anyone
knows how to solve it? or any other recommendations?
Thanks,
Sky
_______________________________________________
Rails mailing list
2008 Oct 30
0
lme4/anova, error message: "Calculated PWRSS for a LMM is negative"
Dear all,
 I'm using the latest version of the package lme4 and R version 2.7.2
(2008-08-25).
After I run the model, I get the results of the model (cf. below). Then, I
run an ANOVA using the "anova" function and I get the following message
"Error in anova(lmer1) : Calculated PWRSS for a LMM is negative".
 I went trough the R-mailing list and a similar error message was
2004 Dec 01
1
[PATCH] checking for negative link
This patch ensures that lib/lib/vorbisfile.c will not use negative value
of "link" when seeking.
Negative value (link=-1) was used by ov_time_seek(vf, 0.0) at least.
Double arithmetic is not precise, it depends on order of operands.
"for(i=0;i<links;i++) sum+=x[i]" gives slightly different result than
"for(i=links-1;i>=0;i--) sum+=x[i]".
I tried add this
2010 Dec 08
1
how to find smallest non-negative and biggest non-positive number in a matrix column ?
so it could be zero in both cases when given column has 0 set in it
-- 
View this message in context: http://r.789695.n4.nabble.com/how-to-find-smallest-non-negative-and-biggest-non-positive-number-in-a-matrix-column-tp3077870p3077870.html
Sent from the R help mailing list archive at Nabble.com.
2009 Feb 19
0
using stepAIC with negative binomial regression - error message
Ben,
I tried playing with the "na.action" but that didn't seem to help.  I didn't know of the na.omit function.  It made it much easier to get rid of all the missing values in the file, and now the regression model is running.
I hadn't put interactions in the model yet since it wasn't even running.  Cosday, sinday, and daylength are strongly collinear.  The full model
2005 Mar 01
2
Negative intercept in glm poisson model
Dear list,
I'm trying to fit a glm model using family=poisson(link = "identity"). The 
problem is that the glm function fits a model with a negative intercept, 
which sounds like a nonsense to me, being the response a Poisson variable. 
>From a previous discussion on this list I've understood that the glm function 
uses IRLS for the fitting without any constraint so it is
2009 Jan 15
1
Seemingly Unrelated Negative Binomial (SUNB) estimation
Dear all,
I am trying to estimate a system of equations with a Seemingly Unrelated
Regression. However because of the characteristics of the data I'd like to
do it with a negative binomial estimation. Would anybody know how to
implement a Seemingly Unrelated Negative Binomial (SUNB) estimation in R?
Thank you in advance for your help.
Best regards,
Elisa Lanzi
-- 
Elisa Lanzi
PhD student in
2008 Nov 07
0
negative binomial predicted probabilities
I estimated a negative binomial model using zelig.
z.out<- zelig(NEWBHC~ PW80 + CHNGBLK + XBLK,data=data, model="negbin")
How do I calculate predicted probabilities for this model?  Is it the same
process as a poisson regression?
Thanks in advance
Joe
	[[alternative HTML version deleted]]
2008 Jul 14
0
Question regarding lmer vs glmmPQL vs glmm.admb model on a negative binomial distributed dependent variable
Hi R-users,
 
I intend to apply a mixed model on a set of longitudinal data, with a negative binomial distributed dependent variable, and after following the discussions on R help list I saw that more experienced people recommended using lmer (from lme4 pack), glmmPQL (from MASS) or glmm.admb (from glmmADMB pack)  
 
My first problem: yesterday this syntax was ok, now I get this weird message (I
2011 Feb 23
0
negative binomial latent class regression in package flexmix
Hello list,
Has anyone had any luck creating an M-step driver for negative
binomial regression for use with package flexmix? I've had a look
here: http://cran.r-project.org/web/packages/flexmix/vignettes/flexmix-intro.pdf
as well as poking around in the flexmix source, but I haven't had much
luck getting anything to work. I can't figure out how to a) come up
with an initial estimate
2009 Oct 26
0
sanitize removes negative value in style
Wonder if it is intended behaviour that sanitize removes a style like
"margin:-3px".
2008 Nov 14
1
negative prediction by gam (mgcv package)
Hi
Gam in mgcv package is predicting negative values which should not be 
the case despite all the predictors and response variables are positive. 
Tried to use log link function but it did not help. Please help 
sunil
-- 
View this message in context: http://www.nabble.com/negative-prediction-by-gam-%28mgcv-package%29-tp20494965p20494965.html
Sent from the R help mailing list archive at
2004 Dec 22
0
smb_proc_readX_data: offset is larger than SMB_READX_MAX_PAD or negative!
Hi,
I'm using Debian unstable, with kernel-image-2.6.8-1-686-smp 2.6.8-10, and samba 
3.0.10-1.  I smbmount a Windows 2003 share with MP3s.  The DC is Windows 2003 in 
mixed mode.  When playing many of these MP3s, there is a noticable delay and the 
following messages are logged into /var/log/message:
Dec 22 13:03:24 roller kernel: smb_add_request: request [c0b0f660, mid=22535] 
timed out!
2009 Feb 02
0
dundi negative caching
Hi!
Is it possible to configure a negative TTL (number was not found in 
Dundi) for DUNDI?
regards
klaus
2000 Apr 14
1
rgamma with negative shape and scale parameters works?
Dear R people,
This is a possibly silly question, but the rgamma function takes the shape
and scale arguments and simulates gamma rvs corresponding to those values,
right? But the shape and scale parameters have to be positive, right?
However, rgamma quite happily returns to me values for negative values of
shape and scale, and in some cases returns negative values eg.
> rgamma(1, 1, -1)
[1]