-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdatemuu.h
More file actions
14 lines (13 loc) · 768 Bytes
/
updatemuu.h
File metadata and controls
14 lines (13 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <Rcpp.h>
#include <stdio.h>
#include <gsl_rng.h>
#include <gsl_randist.h>
#include <math.h>
#include <R_ext/Utils.h>
#include <stdlib.h>
#include <boost/math/special_functions/digamma.hpp>
using namespace std;
void updatemuu(vector<double>& xmust, vector<double>& xmuut, vector<int>& xn_s, vector<int>& xn_u, int xI, int xK, int xM, int K1,
vector<double>& xp_var, Rcpp::NumericVector& sqrt_var1, Rcpp::NumericVector& sqrt_var2, int xtt, vector<int>& xgammat, Rcpp::IntegerMatrix& xd,
Rcpp::NumericMatrix& xybar_s, Rcpp::NumericMatrix& xybar_u, Rcpp::NumericMatrix& pt2, Rcpp::NumericMatrix& pt3,
double xlambda, double xbeta, double xalpha, vector<double>& xmu, vector<double>& xSigu, vector<int>& xAmuu);