Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var series = _.map(groupedData, function(d) {
return {
title: d.studlab,
md: d.TE,
left: d.lower,
right: d.upper,
experimental: {
total: d["n.e"],
mean: d["mean.e"],
sd: d["sd.e"],
},
control: {
total: d["n.c"],
mean: d["mean.c"],
sd: d["sd.c"],
},
fixedWeight: d["w.fixed"]/data['w.fixed.w'],
randomWeight: d["w.random"]/data['w.random.w'],
}
});
var series = _.map(groupedData, (d) => {
const result = {
title: d.studlab,
md: d.TE,
left: d.lower,
right: d.upper,
experimental: {
total: d['n.e'],
mean: d['mean.e'],
sd: d['sd.e'],
},
control: {
total: d['n.c'],
mean: d['mean.c'],
sd: d['sd.c'],
},
fixedWeight: d['w.fixed'] / data['w.fixed.w'],
randomWeight: d['w.random'] / data['w.random.w'],
};
return result;
});