--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to stan-users+...@googlegroups.com.
To post to this group, send email to stan-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> cr [,1] [,2] [1,] 3.149149 -0.140450679 [2,] 4.431096 0.324657435 [3,] 3.534658 NA [4,] 4.322317 2.515527025 [5,] 4.579680 0.135935029 [6,] 3.829151 1.442398431 [7,] 3.340404 -0.551143435 [8,] 4.107840 2.255137882 [9,] 2.125653 -0.007589424 [10,] 3.469233 -0.068156790 [11,] 3.906750 0.734196341 [12,] 3.854476 0.804081973 [13,] 3.541880 NA [14,] 3.903313 2.529434036 [15,] 3.829010 0.904271246 [16,] 3.885068 NA [17,] 2.962250 0.358900085 [18,] 4.340386 1.461094418 [19,] 2.462504 -0.588568428 [20,] 6.913772 3.848423718 [21,] 2.954179 0.231237494 [22,] 5.089764 NA
I tried separating my dataset but it gives me the following error message
> cr_miss [,1] [,2] [1,] 3.534658 NA [2,] 3.541880 NA [3,] 3.885068 NA [4,] 5.089764 NA [5,] 3.051150 NA > hierarchical_dat1<-list(N=45,M=5,D=2,cr_obs=cr_obs,cr_miss=cr_miss) > > fit1<-stan(file='coding missing data.stan',data=hierarchical_dat1,iter=1000,chains=4) Error in FUN(X[[i]], ...) : Stan does not support NA (in cr_miss) in data failed to preprocess the data; sampling not done
--
You received this message because you are subscribed to the Google Groups "Stan users mailing list" group.
Hi All:
data {
int<lower=0> N;// num observations with complete midpoints and log(range)
int<lower=0> M;// num observations with missing values on log(range)
int<lower=0> D;// dimension of observations
vector[D] cr_obs[N];//observations with complete midpoints and log(range)
veotor[1] cr_miss_midpoints[M];//observations with complete midpoints but missing log(range)
}
I have tried and applied conditional normal distribution for partially observed data and here is my code
[1] "The following numerical problems occured the indicated number of times after warmup on chain 4"
count
Exception thrown at line 49: normal_log: Scale parameter is 0, but must be > 0! 1
[1] "When a numerical problem occurs, the Metropolis proposal gets rejected."
[1] "However, by design Metropolis proposals sometimes get rejected even when there are no numerical problems."
[1] "Thus, if the number in the 'count' column is small, do not ask about this message on stan-users."