Displaying 20 results from an estimated 5000 matches similar to: "Please help me"
2010 Jun 06
1
Onequestion
Dear Mr. or Ms.,
I used the R-software to run the zero-inflatoin negative binomial model, but I could not get the results. And the error message is "solve.default(as.matrix(fit$gaussian)) ". In the model, I introduced 3 dummy variables. I do not know the reasons fully.
I will be very appreciate if you can help me. Thank you.
Best regards,
Sincerely,
Xiongqing Zhang
2010 Jun 05
1
(no subject)
Dear Sirs
First herewith I'll introduce myself. My name is Kristiono, I want ask you to help me how to get ZINB (Zero Inflated Negative Binomial) regression modeling step by step.
Anyway, I get some trouble to get step by step about
1. How to get the log likelihood function of ZINB (step by step)
2. How to get first derivative, second derifative to get MLE by Newton Raphson (step by
2010 Dec 21
2
Warning message when items of Hmisc are masked by loading a package.
I've noticed that I get a warning message every time a package masks
some functions from Hmisc. The warning message says :
Warning message:
In identical(get(., i), get(., lib.pos)) : ignoring non-pairlist attributes
This happens with eg:
library(plyr)
library(xtable)
I think I've seen this passing by before, but I'm not sure any more.
Just thought I'd mention it.
Cheers
Joris
2010 Jun 18
3
Non-procedural access to columns of a matrix
Hi,
I would like to have an index for a column in a matrix encoded in a
cell of the same matrix.
For example:
x = matrix(c(11,12,13,1,
21,22,23,3,
31,32,33,2),byrow=T,ncol=4)
In this case, column 4 is the index. I then access the column
specified in the index by:
> for (i in 1:3) print(x[i,x[i,4]])
[1] 11
[1] 23
[1] 32
>
> for (i in 1:3) {x[i,x[i,4]] <- x[i,x[i,4]] + 5}
> x
2017 Mar 28
2
`[` not recognized as a primitive in certain cases.
?typeof? is your friend here:
> typeof(`[`)
[1] "special"
> typeof(mc[[1]])
[1] "symbol"
> typeof(mc2[[1]])
[1] "special"
so mc[[1]] is a symbol, and thus not a primitive.
- Lukas
> On 28 Mar 2017, at 14:46, Michael Lawrence <lawrence.michael at gene.com> wrote:
>
> There is a difference between the symbol and the function (primitive
>
2018 Jan 31
3
Best practices in developing package: From a single file
On 31/01/2018 6:33 AM, Joris Meys wrote:
> 3. given your criticism, I'd like your opinion on where I can improve
> the documentation of https://github.com/CenterForStatistics-UGent/pim.
> I'm currently busy updating the help files for a next release on CRAN,
> so your input is more than welcome.
After this invitation I sent some private comments to Joris. I would
say his
2010 Jun 24
2
count data with a specific range
I would like to prepare the data for barplot. But I only have the data frame
now.
x1=rnorm(10,mean=2)
x2=rnorm(20,mean=-1)
x3=rnorm(15,mean=3)
data=data.frame(x1,x2,x3)
If there a way to put data within a specific range? The expected result is
as follows:
range x1 x2 x3
-10-0 2 5 1 (# points in
this
2016 Sep 06
2
The use of match.fun
Dear gurus,
I was utterly surprised to learn that one of my examples illustrating the
need of match.fun() doesn't give me the expected result.
center <- function(x,FUN) FUN(x)
center(1:10, mean)
mean <- 4
center(1:10, mean)
Used to give me the error message "could not find function FUN". Now it
just works, even though I didn't expect it to. I believe this is at least
2010 Apr 12
1
zerinfl() vs. Stata's zinb
Hello,
I am working with zero inflated models for a current project and I am
getting wildly different results from R's zeroinfl(y ~ x, dist="negbin")
command and Stata's zinb command. Does anyone know why this may be? I find
it odd considering that zeroinfl(y ~ x, dist="poisson") gives identical to
output to Stata's zip function.
Thanks,
--david
[[alternative
2015 Apr 01
4
evaluation in transform versus within
On 01/04/2015 1:35 PM, Gabriel Becker wrote:
> Joris,
>
>
> The second argument to evalq is envir, so that line says, roughly, "call
> environment() to generate me a new environment within the environment
> defined by data".
I think that's not quite right. environment() returns the current
environment, it doesn't create a new one. It is evalq() that created
2010 May 25
2
summary of arima model in R
Hi,
I want to give a summary or anova for "arima" model in R, as
"summary", and "anova" for "lm".
As including various intervention factors in arima(xreg = ) part, I
want to assess the significancy of thse factors.
I can do it using interrupted analysis of time series by linear
regression, but want to see whether arima model works for the data
first.
2017 May 31
4
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
Seriously, if a method gives a wrong result, it's wrong. line() does NOT
implement the algorithm of Tukey, even not after the patch. We're not
discussing Excel here, are we?
The method of Tukey is rather clear, and it is NOT using the default
quantile definition from the quantile function. Actually, it doesn't even
use quantiles to define the groups. It just says that the groups
2011 Feb 04
2
terribly annoying bug with POSIXlt : one o'clock is midnight?
Apparently, as.POSIXlt takes one o'clock as the start of the day :
> as.POSIXlt(0,origin="1970-01-01")
[1] "1970-01-01 01:00:00 CET"
> as.POSIXlt(0,origin="1970-01-01 00:00:00")
[1] "1970-01-01 01:00:00 CET"
> as.POSIXlt(0,origin="1970-01-01 23:59:59")
[1] "1970-01-02 00:59:59 CET"
Cheers
--
Joris Meys
Statistical
2010 May 07
2
help on hmisc
can anyone know where i can find information on compile hmisc on windows, especially 64 windows?
thanks,
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
ID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
[[alternative HTML version deleted]]
2010 Jun 10
3
Finding distance matrix for categorical data
All,
How can we find a distance matrix for categorical data
ie. given a csv below
var1 var2 var3 var4
element1-1 yes x a k
element1-2 no y b l
element1-3 maybe y c m
how can i compute the distance matrix between all the elements
Actually i need it to create clusters on top
2017 Sep 28
5
Duncan's retirement: who's taking over Rtools?
Dear dev team,
I was sorry to see the announcement of Duncan about his retirement from
maintaining the R Windows build and Rtools. Duncan, thank you incredibly
much for your 15 years of devotion and your impressive contribution to the
R community as a whole.
Thinking about the future, I wondered whether there were plans for the
succession of Duncan. Is it the intention to continue providing
2014 Apr 19
1
lag() not returning a time series object
Dear all,
Before I file this as a bug, I wanted to check if I didn't miss something.
The help page of lag() says that the function returns a time series object.
It actually does return something that looks like a ts object (the
attribute tsp is set). But when using a vector, the class "ts" is not added
to the result:
> avec <- 1:10
> lag(avec)
[1] 1 2 3 4 5 6 7 8
2014 Oct 03
2
How I() works in a formula
Dear all,
I'm updating a package regarding a new type of models, and I'm looking to
extend the formula interface with two functions (L() and R() ) for
construction of these models. I want to use as much of the formula
interface as possible, and hoped to do something similarly to I().
I know the I() function does nothing more than add the class "AsIs". I've
been browsing the
2010 Mar 30
2
weighted.median function from package R.basic
Dear all,
I want to apply a weighted median on a huge dataset, and I remember a
function from the package R.basic that could do this using an internal
sorting algorithm qsort. This speeded things up quite a bit. Alas, I can't
find that package anywhere anymore. There is a weighted.median function in
the package limma too, but I didn't use that before.
Anybody who knows what happened to
2010 Jun 14
2
Large Data
HI,
I want to import 1.5G CSV file in R.
But the following error comes:
'Victor allocation 12.4 size'
How to read the large CSV file in R .
Any one can help me?
--
View this message in context: http://r.789695.n4.nabble.com/Large-Data-tp2254130p2254130.html
Sent from the R help mailing list archive at Nabble.com.