Re: [R] extract AICc from model in glmulti object

2014-12-03 Thread Paul Tanger
> Hi, > > Is there an easy way to extract the AICc from a model within a glmulti > object? I see the AIC, but not AICc. For example: > > data(mtcars) > cardata = mtcars > library(glmulti) > # create models > global = glm(mpg ~ ., data=mtcars) > models = glmulti(global, level=1, crit="aicc", confs

Re: [R] correlation with missing values.. different answers

2014-04-13 Thread Paul Tanger
1143355 -0.09932185 0.1850379 1. > cor(swM[,1:2],use="pairwise.complete.obs") > # FrtltyAgrclt > #Frtlty 1.000 0.3920289 > #Agrclt 0.3920289 1.000 > > A.K. > > On Sunday, April 13, 2014 9:11 PM, Paul Tanger > wrote: > Hi, > I

[R] correlation with missing values.. different answers

2014-04-13 Thread Paul Tanger
Hi, I can't seem to figure out why this gives me different answers. Probably something obvious, but I thought they would be the same. This is an minimal example from the help page of cor() : > ## swM := "swiss" with 3 "missing"s : > swM <- swiss > colnames(swM) <- abbreviate(colnames(swiss), min

[R] split dataframe by sample()

2011-06-23 Thread Paul Tanger
Hi, I seemingly have a simple problem, but I've spend hours reading guides & posts on this forum and I can't seem to piece together what I need. I have a dataframe where I want to divide it into two subsets: a sample, and the remainder of the dataframe in a new frame. I've tried this: split(df, s