If you have a clear idea what meaning those weights have (?) in the context of
a specific calculation (?), and you know what the weights are (?), then it is
usually trivially easy to do in R. However, your question is vague on all of
those points, so offering you a solution seems like an invita
Dear R Forum
I have a data.frame as
mydat =
c(6,6,5,6,4,6,8,4,6,6,6,3,4,6,5,7,7,4,3,5,5,5,3,6,7,4,4,7,4,3,4,6,4,6,5,4,4,7,6,8,5,6,5,5,8,2,3,5,7,5)
Is there any library or way in R to allocate weights to these values? Actually
I am having a large data, but for illustrative purpose, have consid
> all(is.na(a)) [1] FALSE
-- Original --
From: "Steven Yen";;
Date: Mon, Jul 27, 2015 09:10 AM
To: "r-help mailing list";
Subject: [R] Judging if a matrix contains any NA
How do I judge if a matrix contain any NA or otherwise non-missing,
non-nu
On 27/07/15 13:36, Collin Lynch wrote:
The following sources discuss the issues generally and may be a goof
pointer to the literature ...
I think that the foregoing merits fortune status! :-)
cheers,
Rolf
--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +6
The following sources discuss the issues generally and may be a goof
pointer to the literature on VIF. Particularly the Schroeder paper.
@article{Yi:Evaluation,
AUTHOR = {Youjae Yi},
TITLE = {On the Evaluation of Main Effects in Multiplicative
Regression Models.},
JOURNAL =
On 26/07/2015 9:10 PM, Steven Yen wrote:
> How do I judge if a matrix contain any NA or otherwise non-missing,
> non-numerical?
David told you about any(). You may also want to use !is.finite()
instead of is.na().
Duncan Murdoch
> In the following, I would like to deliver ONE logical of TRUE o
On Jul 26, 2015, at 6:10 PM, Steven Yen wrote:
> How do I judge if a matrix contain any NA or otherwise non-missing,
> non-numerical?
> In the following, I would like to deliver ONE logical of TRUE or FALSE,
> rather than a 4 x 4 matrix containing TRUE or FALSE. Thank you.
>
> > a<-matrix(1:16
How do I judge if a matrix contain any NA or otherwise non-missing,
non-numerical?
In the following, I would like to deliver ONE logical of TRUE or FALSE,
rather than a 4 x 4 matrix containing TRUE or FALSE. Thank you.
> a<-matrix(1:16,nrow=4)
> diag(a)<-NA
> a
[,1] [,2] [,3] [,4]
[1,] N
Hi Lida,
You can try this:
d<- choose.dir() # choose the folder with the subdirectories containing the
csv files
f <- list.files(d, full.names = TRUE, recursive = TRUE)
# Here the example for the "sing" files
selsing <- grep("sing",f) #Select the files notaining the word sing
allsing <- data.fr
Dear All
I have a general question about VIF.
While there are multiple rules of thumb about the threshold value of
VIF, e.g. 4 or 10, implying multicollinearity, I am wondering if
anyone can point me to some literature supporting these rules of
thumb.
Thank you so much!
wensui
___
Hi,
This is a repost from here
(http://r.789695.n4.nabble.com/Writing-output-of-a-looped-process-with-pdfs-tt4710348.html),
due to the post not being complete originally. I am running R studio on OS X
Yosemite 10.10.4 (Mac). I appreciate you help very much!
The objective: I have 100 shapefiles
Hi,
This is a repost from here
(http://r.789695.n4.nabble.com/Writing-output-of-a-looped-process-with-pdfs-tt4710348.html),
due to the post not being complete originally. I am running R studio on OS X
Yosemite 10.10.4 (Mac). I appreciate you help very much!
The objective: I have 100 shapefiles
Hello. I am drawing a graph using graphviz. It works but now, I am trying
to use some palettes from the RColorBrewer pakcage. Any idea why this
diagram works when the code (in .Rmd) is
```{r, engine='dot', echo=F}
digraph unix{
size=30;
ratio=compress;
param [label=" Contrastes paramétric
Dear Atte Tenkanen,
Re:
> Hi,
>
> I have tried to find a way to find opposite or complementary colors in R.
>
> I would like to form a color circle with R like this one:
> http://nobetty.net/dandls/colorwheel/complementary_colors.jpg
>
> If you just make a basic color wheel in R, the colors d
sum(v*w)
There are no "column vectors" in R... there are vectors (that have no
"direction"), and there are data frames that might only have one column, and
matrices that might have many rows but only one column, and a piece of matrix
or data frame is often converted to a vector when indexing is
Dear Hal
Are you looking for %*% by any chance?
On 26/07/2015 09:38, admin.dslcompu...@gmail.com wrote:
Hi Everyone:
How do I correctly compute z?
z = 0;
for i = 1:7
z = z + v(i) * w(i)
end
If there are two column vectors v and w, each with 7 elements (i.e., they have
dimensions 7x1)
Hi,all
I am using the spdep-package to estimate the SAR(or called SLM) and SDM in
R. I can get the estimation results of SAR and SDM with the command of
"lagsarlm". But when I perform the "impact" command to calculate the direct
effect, indirect effect and total effect, it feedback the following
s
Thanks,
This helps me going on.
The description in "complementary {colortools}" was/is somehow misleading:
"Complementary or opposite color scheme is formed by colors that are opposite
each other on the color wheel (example: red and green)."
Atte T.
>/ On 25 Jul 2015, at 21:49 , Atte Tenkanen
Hi Everyone:
How do I correctly compute z?
z = 0;
for i = 1:7
z = z + v(i) * w(i)
end
If there are two column vectors v and w, each with 7 elements (i.e., they have
dimensions 7x1).
Regards,
Hal
Sent from Surface
[[alternative HTML version deleted]]
___
Hi Glenn,
I don't understand what you are after. If I run your code I get two figures to
the right of the decimal point. Can you give us an example of the layout you
want? Clearly I am missing the point.
Note I removed the palate command from the code,
ggplot(SwapCurve, aes(x = Tenor, y= Rate
On 7/24/2015 6:23 AM, Jim Lemon wrote:
Hi jpara3,
Your example, when I got it to go:
one<-c(3,2,2)
two<-c("a","b","b")
data<-dataframe(one,two)
plot(data$one,col=data$two)
Wow Jim. Psychic indeed! Not only did you answer with NO reproducible
example, but on round 2 you fixed a non-working ex
Hi Atte,
If you look at the colors produced by rainbow(12):
rainbow(12)
[1] "#FFFF" "#FF8000FF" "#00FF" "#80FF00FF" "#00FF00FF" "#00FF80FF"
[7] "#00FF" "#0080" "#" "#8000" "#FF00" "#FF0080FF"
they are complementary additive colors. That is, in the RGB color
space
22 matches
Mail list logo