search for: chisqpvalu

Displaying 3 results from an estimated 3 matches for "chisqpvalu".

Did you mean: chisqpvalue
2010 Jul 22
1
How do I get rid of list elements where the value is NULL before applying rbind?
...ed_time) > 5) { res = fitdist(df$elapsed_time,"exp") year = df$sale_year[1] sample = df$sale_week[1] mid = df$m_id[1] estimate = res$estimate sd = res$sd samplesize = res$n loglik = res$loglik aic = res$aic bic = res$bic chisq = res$chisq chisqpvalue = res$chisqpvalue chisqdf = res$chisqdf if (!is.null(estimate) && !is.null(sd) && !is.null(loglik) && !is.null(aic) && !is.null(bic) && !is.null(chisq) && !is.null(chisqpvalue) && !is.null(chisqdf)) { rv = data.frame(mid...
2010 Jul 16
1
I need help making a data.fame comprised of selected columns of an original data frame.
...s$mid[i] ndf$estimate[i] = m_id_default_res$estimate[i] ndf$sd[i] = m_id_default_res$sd[i] ndf$n[i] = m_id_default_res[i] ndf$loglik[i] = m_id_default_res$loglik[i] ndf$aic[i] = m_id_default_res$aic[i] ndf$bic[i] = m_id_default_res$bic[i] ndf$chisq[i] = m_id_default_res$chisq[i] ndf$chisqpvalue[i] = m_id_default_res$chisqpvalue[i] ndf$chisqdf[i] = m_id_default_res$chisqdf[i] } ndf And I get the following error: Error in `$<-.data.frame`(`*tmp*`, "n", value = list(0.114752782316094)) : replacement has 1 rows, data has 0 I need to either get rid of the columns in m_id_de...
2010 Jul 16
1
Troubles with DBI's dbWriteTable in RMySQL
...ind, aaa) print("==========================================") m_id_default_res print("==========================================") ndf <- m_id_default_res[, c('mid', 'estimate', 'sd', 'loglik', 'aic','bic', 'chisq', 'chisqpvalue', 'chisqdf')] ndf The data in NDF is perfect, exactly what I expected when I print the contents as shown in the last statement above. On the asumption tha tthat is a data frame, I tried dbWriteTable(con,"test1",ndf); But I received the following error: Error in function...