similar to: "invalid times argument in rep function"

Displaying 20 results from an estimated 50000 matches similar to: ""invalid times argument in rep function""

2007 Feb 13
0
adf test: trend, no drift - rep: invalid 'times' argument
Hello! I am applying the ADF.test function from package uroot to a time series of data. When I apply the full test, incorporating drift and trend terms, the regressor estimate of the drift term is not significantly different from zero. So I apply the test to a model without drift term, with deterministic trend only. But then I always get the following error:
2012 Feb 13
3
Assigning a function to the 'times' argument of rep()
Question: I'm trying to use paste() with rep() to reformat a series of values as zip codes. e.g., if column 1 looks like: 52775 83111 99240 4289 112 57701 20001 I want rows 4 and 5 to read, "04289" "00112" My thought was this: > perry_frame$zip <- ifelse(nchar(as.character(perry_frame$zip))<5,
2014 Sep 25
3
[LLVMdev] Optimization of sqrt() with invalid argument
My colleague Will Schmidt recently discovered (http://llvm.org/bugs/show_bug.cgi?id=21048) that the LLVM optimizers are converting sqrt(n), where n is negative, into 0.0. Now, as Sanjay pointed out, the value of sqrt(n) for negative n other than -0.0 is undefined according to the C99 standard, so this is allowable behavior. But I think that it's not necessarily good behavior, nonetheless.
2014 Sep 26
5
[LLVMdev] Optimization of sqrt() with invalid argument
On Fri, 2014-09-26 at 13:36 -0500, Hal Finkel wrote: > ----- Original Message ----- > > From: "Bill Schmidt" <wschmidt at linux.vnet.ibm.com> > > To: "Stephen Canon" <scanon at apple.com> > > Cc: spatel+llvm at rotateright.com, "Will Schmidt" <will_schmidt at vnet.ibm.com>, "LLVM Developers Mailing List" > >
2007 Mar 22
0
11 commits - libswfdec/swfdec_color.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_net_stream.h libswfdec/swfdec_pattern.c libswfdec/swfdec_script.c NEWS test/trace
NEWS | 13 + libswfdec/swfdec_color.c | 2 libswfdec/swfdec_flv_decoder.c | 8 - libswfdec/swfdec_js_net_stream.c | 16 ++ libswfdec/swfdec_movie.c | 2 libswfdec/swfdec_net_stream.c | 47 ++++++ libswfdec/swfdec_net_stream.h
2011 Jul 20
0
The C function getQ0 returns a non-positive covariance matrix and causes errors in arima()
Hi, the function makeARIMA(), designed to construct some state space representation of an ARIMA model, uses a C function called getQ0, which can be found at the end of arima.c in R source files (library stats). getQ0 takes two arguments, phi and theta, and returns the covariance matrix of the state prediction error at time zero. The reference for getQ0 (cited by help(arima)) is:
2014 Sep 26
3
[LLVMdev] Optimization of sqrt() with invalid argument
On Fri, 2014-09-26 at 12:09 -0400, Stephen Canon wrote: > > On Sep 26, 2014, at 11:59 AM, Tim Northover <t.p.northover at gmail.com> wrote: > > > >> I know it's part of test-suite/external, but this constant fold code has > >> been around 5+ years. Was the bug lying dormant all this time, only visible > >> on PPC, or something else? > > >
2009 Sep 16
0
I've got Error seeking to block: Invalid argument
Hello Oll(y) :) After rebuilding whole database, I'm getting error: Error seeking to block: Invalid argument (in ruby and php binding), I've ubuntu and xapian from stable package, how I can correct this error or I've to rebiuld whole database again? I found this http://trac.xapian.org/ticket/109 but I didnt find anything there ;/ any solutions? -- Best regards, Rafi
2006 Jan 22
0
Error in 1:object$rank : NA/NaN argument
can anybody help with the following error message: Error in 1:object$rank : NA/NaN argument I get it with comparisons of single means in an ANOVA. Example data below. Thanks, Steffen seven subjects participated in each of 6 conditions (intervals). > subject = factor(rep(c(1:7), each = 6)) > interval = factor(rep(c(1:6), 7)) and here is the dependent variable: > dv = c(3.3868,
2012 Nov 12
1
Invalid 'times' argument three-category ordered probit with maximum likelihood
Hello, First time poster here so let me know if you need any more information. I am trying to run an ordered probit with maximum likelihood model in R with a very simple model (model <- econ3 ~ partyid). Everything looks ok until i try to run the optim() command and that's when I get " Error in rep(1, nrow(x)) : invalid 'times' argument". I had to adapt the code from a 4
2011 Feb 01
2
"each" argument in rep (Bug?)
I have a vector of unique elements that I want to replicate a variable number of times depending on the element (lengths all > 800). However I noticed that the resulting length was not the sum of the each argument. The following example demonstrates this. I am confused as to why this works: rep(1:4, c(2,1,2,1)) [1] 1 1 2 3 3 4 but this doesn't: rep(1:3, each=c(2,1,2)) [1] 1 1 2
2011 Jul 26
2
Invalid "times" argument?
Hello, I'm new to R and work with psychometrics (Item response theory). I was using a package called "cirt" to model a data that contains only 0s, 1s and 9s. The package is basically used for Monte Carlo Markov Chain estimation of parameters and I specified 5000 iterations. The model seems to run fine but when I try to recover odds ratio statistics using the function
2011 Nov 08
2
Sorting Panel Data by Time
I have panel data in the following form: TIME X1 S1 1 1 0.99 1 2 0.50 1 3 0.01 2 3 0.99 2 1 0.99 2 2 0.25 3 3 0.75 3 2 0.50 3 1 0.25 ... ... ...... And desire a new vector of observations in which one column (S1 above) is sorted for each second from least to largest. That
2014 Sep 26
4
[LLVMdev] Optimization of sqrt() with invalid argument
This isn't purely a fast-math issue...ConstantFolding isn't using enable-unsafe-fp-math to decide whether to emit the '0'. It's just looking for the llvm intrinsic rather than a call to sqrt: %0 = call double @llvm.sqrt.f64(double -2.000000e+00) vs: %0 = call double @sqrt(double -2.000000e+00) #2 So how about a front-end fix: If the parameter is a negative constant,
2010 Sep 07
5
question on "optim"
Hey, R users I do not know how to describe my question. I am a new user for R and write the following?code for a dynamic labor economics?model and use OPTIM to get optimizations and parameter values. the following code does not work due to the?equation: ?? wden[,i]<-dnorm((1-regw[,i])/w[5])/w[5] where w[5]?is one of the parameters (together with vector a, b and other elements in vector
2006 Jul 17
1
sem: negative parameter variances
Dear Spencer and Prof. Fox, Thank you for your replies. I'll very appreciate, if you have any ideas concerning the problem described below. First, I'd like to describe the model in brief. In general I consider a model with three equations. First one is for annual GRP growth - in general it looks like: 1) GRP growth per capita = G(investment, migration, initial GRP per
2010 Sep 15
1
optim with BFGS--what may lead to this, a strange thing happened
Dear R Users on a self-written function for calculating maximum likelihood probability (plz check function code at the bottom of this message), one value, wden, suddenly jump to zero. detail info as following: w[11]=2.14 lnw =2.37 2.90 3.76 ... regw =1.96 1.77 1.82 .... wden=0.182 0.178 0.179... w[11]=2.14 lnw=2.37 2.90 3.76 ... regw =1.96 1.77 1.82 .... wden=0.182
2008 Nov 05
2
Simple rep() question duplicating times and dates.
I want to create a data.frame of time and date for a year. I started with the idea of simply producing two vectors (time and date) The first part ( time) is easy. rep(1:24, 365) But how do I get a series of 24 dates for O1 January 2005 and repeat this to 31 December 2005. It should be easy but I don't see it. Thanks
2013 Apr 09
3
rep() fails at times=0.29*100
Dear list, I have found an unusual behavior and would like to check if it is a possible bug, and if updating R would fix it. I am not sure if should post it in this mail list but I don't where is R bug tracker. The only mention I found that might relate to this is "If times is a computed quantity it is prudent to add a small fuzz." in rep() help, but not sure if it is related to
2005 Oct 31
2
nlme error message
Dear Friends, I am seeking for any help on an error message in lme functions. I use mixed model to analyze a data with compound symmetric correlation structure. But I get an error message: "Error in corMatrix.corCompSymm(object) : NA/NaN/Inf in foreign function call (arg 1)". If I change the correlation structure to corAR1, then no error. I have no clue how to solve this problem.