Blog Archives

Delete a List Component in R

June 24, 2009
By

In R, the way to delete a component in a list object is different from matrix and vector objects. For a vector, to delete an element:vec <- c(1, 2, 3)vec <- vecFor a matrix, to delete a row or a column:mat <- matrix(c(1,2,3,4), 2, 2)mat2 <- mat # delete a rowmat3 <- mat # delete a columnFor a list,...

Read more »

Delete a List Component in R

June 24, 2009
By

In R, the way to delete a component in a list object is different from matrix and vector objects. For a vector, to delete an element:vec <- c(1, 2, 3)vec <- vecFor a matrix, to delete a row or a column:mat <- matrix(c(1,2,3,4), 2, 2)mat2 <- mat # delete a rowmat3 <- mat # delete a columnFor a list,...

Read more »

Simulate parameters of a tobit model

March 3, 2009
By

I got an email, asking me if our arm package can simulate tobit model to get simulated parameters. Indeed, arm does not suport tobit model. It only support sim() for lm, glm and mer classes in R. But it is not difficult to get a tobit verison of sim(). Here are the steps:1. fit a tobit...

Read more »

Simulate parameters of a tobit model

March 3, 2009
By

I got an email, asking me if our arm package can simulate tobit model to get simulated parameters. Indeed, arm does not suport tobit model. It only support sim() for lm, glm and mer classes in R. But it is not difficult to get a tobit verison of sim(). Here are the steps:1. fit a tobit...

Read more »

Our new R package: R2jags

February 8, 2009
By

I have got emails occasionally from JAGS users, asking about our new R package: R2jags. Basically, R2jags runs JAGS via R and makes postanalysis easier to be done in R. Taking advantage of the functions...

Read more »

Our new R package: R2jags

February 8, 2009
By

I have got emails occasionally from JAGS users, asking about our new R package: R2jags. Basically, R2jags runs JAGS via R and makes postanalysis easier to be done in R. Taking advantage of the functions...

Read more »

Importing Generic Function from Other Package: A Tip on Writing a R Package

January 30, 2009
By

I did not know this and had to spend the whole week to figure out what's wrong with my code. I was updating the mi package. While I was doing code checking procedure, I always got a error message that I did not know what was going on. I remember last...

Read more »

Importing Generic Function from Other Package: A Tip on Writing a R Package

January 30, 2009
By

I did not know this and had to spend the whole week to figure out what's wrong with my code. I was updating the mi package. While I was doing code checking procedure, I always got a error message that I did not know what was going on. I remember last...

Read more »

Runing R in the Command Mode in the Window system

January 29, 2009
By

Just when I am about to convert myself into a Linux user, I found this. Running R in the command mode in the Window system is much faster. Here is a simple test:in the Window interface:> system.time(rnorm(1000000)%*%rnorm(1000000)) user system elapsed 1.06 0.05 1.14 in the...

Read more »

Runing R in the Command Mode in the Window system

January 29, 2009
By

Just when I am about to convert myself into a Linux user, I found this. Running R in the command mode in the Window system is much faster. Here is a simple test:in the Window interface:> system.time(rnorm(1000000)%*%rnorm(1000000)) user system elapsed 1.06 0.05 1.14 in the...

Read more »

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training



http://www.eoda.de









ODSC

CRC R books series











Contact us if you wish to help support R-bloggers, and place your banner here.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)