Displaying 20 results from an estimated 800 matches similar to: "Why unique(sample) decreases the performance ?"
2011 Jan 17
1
Problem about for loop
Hi everyones, my function like;
e <- rnorm(n=50, mean=0, sd=sqrt(0.5625))
x0 <- c(rep(1,50))
x1 <- rnorm(n=50,mean=2,sd=1)
x2 <- rnorm(n=50,mean=2,sd=1)
x3 <- rnorm(n=50,mean=2,sd=1)
x4 <- rnorm(n=50,mean=2,sd=1)
y <- 1+ 2*x1+4*x2+3*x3+2*x4+e
x2[1] = 10 #influential observarion
y[1] = 10 #influential observarion
data.x <- matrix(c(x0,x1,x2,x3,x4),ncol=5)
data.y
2010 Jun 24
4
Simple qqplot question
I am a beginner in R, so please don't step on me if this is too
simple. I have two data sets datax and datay for which I created a
qqplot
qqplot(datax,datay)
but now I want a line that indicates the perfect match so that I can
see how much the plot diverts from the ideal. This ideal however is
not normal, so I think qqnorm and qqline cannot be applied.
Perhaps you can help?
Ralf
2007 Mar 20
1
Symbol and Ellipsis problems
Hi Everyone,
When I have a load of functions which have various arguments passed
via the ellipsis argument it keeps on assigning them as symbol making
them unusable to the function. My current work around involves using
do.call but this is rather cumbersome.
Does anyone know why it suddenly changes the types to symbol and if
there is a way to get the actual data pointed to by the symbol? (I
2006 Jul 31
4
question about dataframe ("sensory") in PLS package
Dear all,
I am trying to my dataframe for the PLS analysis using the PLS package.
However I have some trouble generating the correct dataframe. The main
problem is how to use one name to represent several columns in the
dataframe.
The example dataframe in PLS package is called "sensory". I cannot
directly read the data file since it's a binary file. If I use
2013 Nov 03
3
[LLVMdev] loop vectorizer issue
Actually what I meant in my original loop, that there is a dependency
between every two consecutive iterations. So, how the loop vectorizer says
'we can vectorize this loop'?
for(int k=20;k<50;k++)
dataY[k] = dataY[k-1];
From: Henrique Santos [mailto:henrique.nazare.santos at gmail.com]
Sent: Sunday, November 03, 2013 4:28 PM
To: Sara Elshobaky
Cc: <llvmdev at
2013 Nov 03
0
[LLVMdev] loop vectorizer issue
Hi Sarah,
the loop vectorizer runs not on the C code but on LLVM IR this c code was lowered to. Before the loop vectorizer runs many other optimization change the shape of this IR.
You can see in the LLVM IR you referenced below, a preceding LLVM IR transformation has change your loop from:
> for(int k=20;k<50;k++)
> dataY[k] = dataY[k-1];
to
> int a = d[19];
>
2013 Nov 03
0
[LLVMdev] loop vectorizer issue
Notice that the code you provided, for globals and stack allocations, at
least,
is semantically equivalent to:
int a = d[19];
for(int k = 20; k < 50; k++)
dataY[k] = a;
Like so, the load you see missing was redundant, probably hoisted by
GVN/PRE
and replaced with "%.pre".
H.
On Sun, Nov 3, 2013 at 11:26 AM, Sara Elshobaky <sara.elshobaky at gmail.com>wrote:
>
2013 Nov 03
2
[LLVMdev] loop vectorizer issue
Hello,
I was trying to trace the Loop vectorizer of the LLVM, I wrote a simple loop
with a clear dependency.
But found that the debug shows that 'we can vectorize this loop'
Here you are my loop with dependency:
for(int k=20;k<50;k++)
dataY[k] = dataY[k-1];
And the debug prints:
LV: Checking a loop in "main"
LV: Found a loop: for.body4
LV: Found an
2009 Mar 02
2
R-code help for filtering with for loop
Dear Sir / Madam,
I am new for R coding. Kindly help me out in sorting out the following problem.
There are 50 rows with six coloumns(you could see in the attached .txt file). I
wish to go for filtering this 50 rows for any one of the six coloumns
satisfying the value >= 64.
I need to have a final table with rows having >= 64 value in any one of the six
coloumns and the rest could be
2020 Jun 26
4
Quedarse con las muestras de una BD que están presentes otra, basado en dos variables
Buenas tardes, quedarme con las muestras de una BD (data) que están
presentes en otra (datax), cuando se tiene una variable que nunca se repite
(Key) es fácil: data <- subset(data,data$Key %in% datax$Key).
Mi problema es cuando la exclusividad viene dada por dos variables. P.e.,
las coordenadas de un mapa: lon y lat.
¿Como puedo quedarme con las muestras de una df cuya lon y lat son iguales
a
2000 Oct 12
2
works in R-1.1.1 but not in R-development; why?
Dear All,
A library (PHYLOGR) that passed the usual tests in R-1.1.1 gives errors with
R-devel; my (mis?)understanding of scoping rules is
that it should have worked in both. The problems seem related to using the
name of the data frame for extracting weights or subsets within a function
call. The problems can be reproduced as follows:
**********************
datai <- data.frame( y =
2010 Aug 06
2
All keys dead, but ØÆÅ£¤§
Hi,
I'm trying to run an accounting program called Mamut DaTax. Running the installation part is not a problem, but when entering the program itself all keys are dead but the following: ??????
I'm using a Norwegian keyboard, and wine version 1.3 under Kubuntu 10.04.
Any suggestions for how to approach?
Thanks :-)
Best regards,
Erik
2003 Oct 15
0
qqnorm(*, datax=TRUE, xlab,ylab) -- S+ compatibility problem
Just found because an old (written for S+) function of mine did
label plots wrongly with R.
Example --- inspired from example(qqnorm) ---
data(precip)
qqnorm(precip, ylab = "Precipitation [in/yr] ...")
qqnorm(precip, ylab = "Precipitation [in/yr] ...", datax = TRUE)
this is all "fine" -- `datax' is a switch that just switches the
axes but keeps the
2008 Mar 31
1
APPLY as alternate to FOR loop?
Dear list,
Below I've written a clunky for loop that counts NA's in a row, replacing all with NA if there are
more than 3 missing values, or keeping the values if 4 or more are present. This is sample code from a very large
dataframe I'm trying to clean up.
I know there are many simpler more elegant solutions to this little problem.
Would someone be willing to show me how to
2012 May 29
1
model frame and formula mismatch with latent class analysis poLCA
Dear R-users,
I keep getting an ERROR saying " Error in model.matrix.default(formula,
mframe) : model frame and formula mismatch in model.matrix() " when i fit
poLCA with more than 63 variables. Below are the details.
I am trying to do a Latent Class Analysis using poLCA. My data set contains
binary scores of, for instance, 200 students on 100 items. These numbers
could even be more
2005 Jul 02
1
probability-probability plot
Hi, there.
Is there any function in R to plot the probability-probability plot (PP
plot)? Suppose I am testing some data against normal.
Thanks.
Yulei
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Yulei He
1586 Murfin Ave. Apt 37
Ann Arbor, MI 48105-3135
yuleih at umich.edu
734-647-0305(H)
734-763-0421(O)
734-763-0427(O)
734-764-8263(fax)
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
2006 Feb 01
1
Difficulty with qqline in logarithmic context
Hi, R friends. I had some difficulty with the following code:
qqnorm(freq, log='y')
qqline(freq)
as the line drawn was seemingly random. The exact data I used appears
below. After wandering a bit within the source code for "abline",
I figured out I should rather write:
qqnorm(freq, log='y')
par(ylog=FALSE)
qqline(log10(freq))
par(ylog=TRUE)
2009 Apr 26
3
Flipping axes of qqnorm
Hi all,
I have just started using R to produce qqnorm plots. I am trying to
switch the x and y axes so that the theoretical values are plotted on the y
axis and my data on the x axis. Can anyone help me with this?
Thanks
--
View this message in context: http://www.nabble.com/Flipping-axes-of-qqnorm-tp23248007p23248007.html
Sent from the R help mailing list archive at Nabble.com.
2006 May 17
1
can Box test the Ljung Box test say which ARIMA model is better?
two ARIMA models, both have several bars signicant in ACF and PACF plots of
their residuals,
but when run Ljung Box tests,
both don't show any significant correlations...
however, one model has p-value that is larger than the other model,
based on the p-values,
can I say the model with larger p-values should be better than the model
with smaller p-values?
[[alternative HTML version
2017 Jun 07
0
Getting forecast values using DCC GARCH fit
Hi,
I am trying to fit a multivariate time series model using DCC GARCH model
and forecast it.
The data looks like this:
> head(datax)
x vibration_x Speed
1 2017-05-16 17:53:00 -0.132 421.4189
2 2017-05-16 17:54:00 -0.296 1296.8882
3 2017-05-16 17:55:00 -0.572 0.0000
4 2017-05-16 17:56:00 -0.736 1254.2695
5 2017-05-16 17:57:00 0.000