search for: m_0

Displaying 7 results from an estimated 7 matches for "m_0".

Did you mean: m0
2019 Sep 14
0
'==' operator: inconsistency in data.frame(...) == NULL
...################# d_0 = data.frame(a = numeric(0)) # zero length data.frame d_00 = data.frame(numeric(0)) # zero length data.frame without names names(d_00) <- NULL # remove names to obtain value being an empty list() at the end of Ops.data.frame d_3 = data.frame(a=1:3) # non-empty data.frame m_0 = matrix(logical(0)) # zero length matrix #------------------------ # error A: # Error in matrix(if (is.null(value)) logical() else value, nrow = nr, dimnames = list(rn,? : # length of 'dimnames' [2] not equal to array extent d_0 == 1?? # error A d_00 == 1? # <0 x 0 matrix> d_3 == 1...
2019 Sep 11
2
'==' operator: inconsistency in data.frame(...) == NULL
Sorry, I can't reproduce the example below even on the same machine. However, the following example produces the same error as NULL values in prior examples: > setClass("FOOCLASS", +????????? representation("list") + ) > ma = new("FOOCLASS", list(M=matrix(rnorm(300), 30,10))) > isS4(ma) [1] TRUE > data.frame(a=1:3) == ma Error in
2011 Dec 03
2
density function always evaluating to zero
...efine posterior density for model 0 f <- function(alpha,h) { e <- y - alpha * x1^2 const <- (2*pi)^(-n/2) / ( gamma(v/2) * (v*s2_m1/2)^(-v/2) ) kernel <- h^((v-1)/2) * exp((-(h/2) * sum(e^2)) - (v*s2_m0)*h) x <- const * kernel return(x) } # calculate approximation of p(y|m_0) m0 <-f(alpha_sample,h_sample_m0) post_m0 <- sum(m0) / nrDraws -- View this message in context: http://r.789695.n4.nabble.com/density-function-always-evaluating-to-zero-tp4155181p4155181.html Sent from the R help mailing list archive at Nabble.com.
2009 Jul 16
2
evaluate sum of sum
Hi R-users, Could anybody show me how to write a code to evaluate sum(z[i] + sum(k[j]*(z[i])^(k[j])), i=1 to 4, j=0 to infinity) ? Thank you so much for any help given. [[alternative HTML version deleted]]
2008 May 07
1
dlm with constant terms
Hi, I am trying to figure how to use dlm with constant terms (possibly time-dependent) added to both equations y_t = c_t + F_t\theta_t + v_t \theta_t = d_t + G_t\theta_{t-1} + w_t, in the way that S-PLUS Finmetrics does? Is there any straightforward way to transform the above to the default setup? Thanks, Tsvetan -------------------------------------------------------- NOTICE: If received in
2003 Oct 21
2
Denominator Degrees of Freedom in lme() -- Adjusting and Understanding Them
...effects), the degrees of freedom seem to be N*T-N-1, where N is total sample size and T is the number of timepoints (at least when data are balanced). In the Pinheiro and Bates book (p. 91), the degrees of freedom are given as m_i-(m_1-1+pi), where m_i is the number of groups at the ith level, m_0=1 if an intercept is included and p_i is the sum of the degrees of freedom corresponding to the terms estimated. I'm not sure how the N*T-N-1 matches up with the formula given on page 91. It seems to me the number of "groups" (i.e., m_i) would be equal to N, the number of individu...
2006 Apr 29
1
SSPIR problem
I am having a problem with the package SSPIR. The code below illustrates it. I keep getting the message: "Error in y - f : non-conformable arrays." I tried to tweak the code below in many different ways, for example, substituting rbind for cbind, and sometimes I get a different error message, but I could not find a variation of this code that would work. Any help will be greatly