Hi,
Can someone explain this error below,
I don't understand why the 2 int columns are associated to make a row name
> horse1.data<-read.csv("cte2.csv", header=TRUE, sep=";")
> h1.dat<-mlogit.data(data=horse1.data,choice="win",chid.var="raceid",alt.var="nbChev",shape="long")
Error in `row.names<-
Doesn't help when you only reply to me. Use reply-all.
--
Sent from my phone. Please excuse my brevity.
On July 28, 2017 3:35:36 PM PDT, san...@free.fr wrote:
>below the cte2.csv url for those willing to check this error :
>
>https://www.dropbox.com/s/wv7nq8tk9k87le5/cte2.csv?dl=0
>
>
>
>- Ma
I don't know either. Perhaps someone else on the list who uses that
_contributed_ package will know.
Please be aware that it is both possible and preferred that you make
reproducible examples so others can troubleshoot. See any of [1][2][3]
[1]
http://stackoverflow.com/questions/5963269/how-t
Thank you Peter. Rounding fixed the problem.
2017-07-28 12:15 GMT-04:00 peter dalgaard :
> Most likely, previous computations have ended up giving slightly different
> values of say 0.1. A pragmatic way out is to round to, say, 5 digits
> before applying unique. In this particular case, it s
Most likely, previous computations have ended up giving slightly different
values of say 0.1. A pragmatic way out is to round to, say, 5 digits before
applying unique. In this particular case, it seems like all numbers are
multiples of 1/30, so another idea could be to multiply by 30, round,
A mess, as you persist in using html.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Jul 28, 2017 at 8:17 AM, li li wrote:
> I have the joint d
1. Why all the library calls to ggplot and lattice if you are using
only basic graphics?
2. Note that:
sub = mtext(expression(paste(lambda)))
is not the same as your
sub = "lambda = 0.7"
Not sure why you think it is.
In any case, you need to learn about R's "plotmath" capabilities for
constru
I have the joint distribution of three discrete random variables z1, z2 and
z3 which is captured by "z"
and "prob" as described below.
For example, the probability for z1=0.46667, z2=-1 and z3=-1 is 2.752e-13.
Also, the probability adds up to 1.
> head(z) z1 z2 z3
[1,] -0.4666
I am trying to make a x-axis and y-axis titles with both a special character
and a subscript. I am not being able to do this. I think its just a placing of
my parenthesis, but I've tried (seemingly) everything.
Even more, when I try the blog users code it works.
Is it because I’m using longi
Tom:
Recursive partitioning requires a response variable because splitting
criteria are based on node purity/homogeneity (by various criteria) of
the responses.
So why did you not just search on "clustering" (e.g. at rseek.org)?
And in particular, have you looked at the CRAN task view on clusteri
You really really need to stop posting and spend some time with a good
R tutorial or two (there are many good ones on the web). While this
list can certainly provide you some help, it cannot and is not meant
to substitute for you doing such basic homework on your own.
At least IMHO.
Cheers,
Bert
Hello,
I have a question related to recursive partitioning, but I cannot find
an answer, likely because I don't know how to properly word my Google
search query.
All recursive partitioning examples, which I can find, are used for
either classification or regression trees like
library(tree)
Hello,
There's a typo in your call to mlogit.data, it should be
alt.var="nbChev", not alt.var="noChev".
Then the error is different. You should check the call arguments to see
if they make sense.
Hope this helps,
Rui Barradas
Em 28-07-2017 13:14, san...@free.fr escreveu:
I re post my que
CC to R-help
From: PIKAL Petr
Sent: Friday, July 28, 2017 2:20 PM
To: 'li xiaomei'
Cc: r-help@r-project.org
Subject: RE: [R] Fail to install package in R
Hi
You should keep conversation within the list, others could bring better answers.
I still do not see any error message. I found this answe
Hi everyone,
We have been trying to construct a Lasso-cox model with discrete time. We
conducted follow-up examinations on the epileptic attack after tumor surgical
resection among glioma patients. The patients are followed-up in the 6/12/24
months after surgical resection, which makes th
When you pass a variable to a function only the value is passed on, the
variable itself remains unchanged. Updated x and y values will be in
test_data[[1]] and test_data[[2]] respectively.
---
Koustav Pal,
PhD student
Hi
If this is urgent why do you provide only limited information.
Windows x Linux x Mac?
Installing from CRN, github elsewhere?
Installing from within R or with OS?
Error messages?
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of li xi
The returned values are in the list you assign to test_data, the original x and
y are not modified, i.e the returned value for x will be test_data[[1]] and for
y will be test_data[[2]]. Using the same variable names in the function and
test is perhaps what is leading to confusion.
> On 28 Jul
> On 28 Jul 2017, at 10:13, Vijaya Kumar Regati
> wrote:
>
> Hi,
>
>
> That was very useful information. Thanks.
>
> But still I am not able to get the desired output with updated code.
>
> Kindly help if you have any further thoughts ...
>
> Updated code :
> x <- 0
> y <- 0
>
> Logic_fn
Hi,
That was very useful information. Thanks.
But still I am not able to get the desired output with updated code.
Kindly help if you have any further thoughts ...
Updated code :
x <- 0
y <- 0
Logic_fn <- function(x,y){
print("Passed Values")
print(x)
print(y)
x <- x + 1
y <- y + 1
print("A
Hi R
I tried to install some packages in R(R.3.4.1,or R.3.0.8), but I
failed to install to, it reminds me: utils:::menuInstallLocal()
Can you help me to fix it? I attached all of the packages I need to
install. Please help me, I have to use it to finish my homework, hence it
is urgent for
c() is used for constructing vectors. Or in other words using the method
c(x,y) provides a vector of length 2 (hopefully). Therefore, you are
pushing a single vector to your function and not two arguments as you want.
It should be Logic_fn(x,y) not Logic_fn(c(x,y)).
Furthermore, i would recommend
22 matches
Mail list logo