Hi Christoph! Actually I had this doubt and thanks for the help!
Although i have kind of a problem: while you just have one variable (x) i
have three and respective interactions (let's say x1, x2 and x3 where x2 and
x3 are categorical variables) the self-construct is still applicable?
Best regar
On Sep 29, 2015, at 4:49 PM, waddawanna wrote:
> Hello Steven,
>
> It looks like, there is no in-built function that can do GAUSS ".*"
> element-wise multiplication.
> Now, if you want to make the desired computations in R, it is actually
> preatty straightforward.
>
>> a<-c(1,2,3)
>> b<-matrix
On 30/09/15 12:49, waddawanna wrote:
Hello Steven,
It looks like, there is no in-built function that can do GAUSS ".*"
element-wise multiplication.
Now, if you want to make the desired computations in R, it is actually
preatty straightforward.
a<-c(1,2,3)
b<-matrix(rep(1:9,1),3,3,byrow=TRUE)
a
Hello
I started to work on nonlinear regressions recently,
I want to compare a set of models and would like to use an equivalent of R2
for nonlinear regression models.
I learned that a good alternative is to calculate the following corrected
formula:
1 - (Residual SS/Total Corrected SS)
On 30/09/15 01:35, peter dalgaard wrote:
On 29 Sep 2015, at 04:16 , Rolf Turner wrote:
On 29/09/15 14:58, li li wrote:
Hi all, In R, is there a function for the cumulative distribution
function for multinomial distribution? I only see pmultinom and
rmultinom which are the prabability mass fu
I'm trying to generate a bar plot from the following data frame
seq leftdeleted right mh
1 125 175 132 0
2 125 225 82 3
3 200 150 82 3
4 300 80 52 2
5 165 205 62 7
where x="seq", y is a stack of
gsub(pattern = "(S[^/]{0,}/.)([:space:]{0,})([0-9,]{0,})(\n){0,}",replace="",
TV_Precios2)
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Omar André
Gonzáles Díaz
Sent: Tuesday, September 29, 2015 11:31 AM
To: r-help@R-project.org
Subject: [R] Fwd: Reg
Excuse me, here is the vector:
TV_Precios2 <- c("S/. 2,499.00S/. 1,999.00", "S/. 2,299.00 S/.
1,599.00", "S/. 2,299.00 S/. 1,599.00",
"S 40\" FULL HD 40LF6350S/. 1,999.00S/. 1,699.00", "S/. 5,999.00S/. 4,799.00",
"S/. 3,499.00S/. 2,999.00", "S/. 4,799.00S/. 3,699.00", "S/. 599.00",
"S/. 1,299.00
To mention also:
temp <- list(1:3, list(letters[1:3], duh= 5:8), zed=15:17)
library(rlist)
list.flatten(temp)
[[1]]
[1] 1 2 3
[[2]]
[1] "a" "b" "c"
$duh
[1] 5 6 7 8
$zed
[1] 15 16 17
---
Giorgio Garziano
[[alternative HTML version deleted]]
___
Thanks Giorgio and Jim. This info is exactly what I needed.
--
View this message in context:
http://r.789695.n4.nabble.com/Analysis-of-causal-relations-between-rare-categorical-events-tp4712801p4712951.html
Sent from the R help mailing list archive at Nabble.com.
__
If you need further info on flattening a list, check this out:
http://stackoverflow.com/questions/8139677/how-to-flatten-a-list-to-a-list-without-coercion/8139959#8139959
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing l
If you want to set the axis limits to exactly your given xlim and ylim, also use
xaxs="i" and yaxs="i" (x or y "axis style" is "internal") in your plot
command. E.g.,
plot(xaxs="i", yaxs="i", 1:10, 87:96, xlim=c(-0.75, 13.2), ylim=c(81.03,100.2))
par("usr")
#[1] -0.75 13.20 81.03 100.20
as
> do.call(c, lapply(temp, function(x) if (is.list(x)) x else list(x)))
[[1]]
[1] 1 2 3
[[2]]
[1] "a" "b" "c"
$duh
[1] 5 6 7 8
$zed
[1] 15 16 17
On Tue, Sep 29, 2015 at 11:00 AM, Therneau, Terry M., Ph.D. <
thern...@mayo.edu> wrote:
> I'd like to flatten a list from 2 levels to 1 level. This
Hi R users, I have a character vector with 2 numbers: old price, new
price. The problem is that some rows (4,23, for example) contain a
little description of the product, which I don't need.
I've tried a lot of thins, like this one:
TV_Precios3 <- gsub("^S ^[0-9]{2}\\$","",TV_Precios2)
Without r
I'd like to flatten a list from 2 levels to 1 level. This has to be easy, but
is currently opaque to me.
temp <- list(1:3, list(letters[1:3], duh= 5:8), zed=15:17)
Desired result would be a 4 element list.
[[1]] 1:3
[[2]] "a", "b", "c"
[[duh]] 5:8
[[zed]] 15:17
(Preservation of the names is n
My first problem is that the counters involved in the summation are
dependent, For instance for each r[i], 0
wrote:
> Dear All,
>
> I'm trying to write and evaluate an equation which involves multiple
> summations but can't figure out how to do it.
>
> I've an numeric vector r
> r<-vector(mode = "
I had to update low/up longitude and latitude attributes of the zoom=1 map
with those of zoom=2 map.
library(ggmap)
# the zoom=2 map works with ggmap(), however it does not show Americas and all
Pacific Ocean
map <- get_map(location = 'India', zoom=2)
bb <- attr(map, "bb")
bb
# the zoom=1 show
On 29 Sep 2015, at 04:16 , Rolf Turner wrote:
> On 29/09/15 14:58, li li wrote:
>> Hi all,
>> In R, is there a function for the cumulative distribution function
>> for multinomial distribution? I only see pmultinom and rmultinom which
>> are the prabability mass function and the function for g
Another approach:
test1 <- data.frame(rbind(c(0.1,0.2),0.3,0.1))
rownames(test1) = c('y1','y2','y3')
colnames(test1) = c('x1','x2');
test2 <- data.frame(rbind(c(0.8,0.9,0.5),c(0.5,0.1,0.6)))
rownames(test2) = c('y2','y5')
colnames(test2) = c('x1','x3','x2')
> test1
x1 x2
y1 0.1 0.2
y2 0.3 0.
Thank you, that turned out to work very well.
If you want to, you can answer it here:
http://stackoverflow.com/questions/32809249/how-to-find-out-if-two-cells-in-a-dataframe-belong-to-the-same-pre-specified-fac/
The question wasnt properly answered, which is why i switched to R-list.
On 28.09
On 29/09/15 14:58, li li wrote:
Hi all,
In R, is there a function for the cumulative distribution function
for multinomial distribution? I only see pmultinom and rmultinom which
are the prabability mass function and the function for generating
multinomial random variables respectively.
Denn
Apologies for cross-posting
We would like to announce the following statistics course:
Course: Data exploration, regression, GLM & GAM with introduction to R
Where: Lisbon, Portugal
When: 8-12 February 2016
Course website: http://www.highstat.com/statscourse.htm
Flyer: http://highstat.com/Course
Hello,
Actually, the probability mass function should be dmultinom. I think
pmultinom is what you want.
Hope this helps,
Rui Barradas
Citando li li :
> Hi all,
> In R, is there a function for the cumulative distribution function
> for multinomial distribution? I only see pmultinom and rmulti
23 matches
Mail list logo