search for: lp_norm

Displaying 9 results from an estimated 9 matches for "lp_norm".

2017 Dec 14
2
help with recursive function
...mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, sd, na.rm = TRUE), 3) dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, function(x) { max(abs(x), na.rm = TRUE) }), 3) data1 <- dat2 %>% gather(key, value, -uniqueid,...
2017 Dec 14
0
help with recursive function
...te(field_rep, "lp", sep = ".")) %>% > > spread(key = field_rep, value = lp) %>% mutate_at(.vars = > grep("_", > > names(.)), funs(norm = round(scale(.), 3))) > > dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], > > 1, sd, na.rm = TRUE), 3) > > dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], > > 1, function(x) { > > max(abs(x), na.rm = TRUE) > > }), 3) > >...
2017 Dec 14
3
help with recursive function
..., sep = ".")) %>% >> >> spread(key = field_rep, value = lp) %>% mutate_at(.vars = >> grep("_", >> >> names(.)), funs(norm = round(scale(.), 3))) >> >> dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], >> >> 1, sd, na.rm = TRUE), 3) >> >> dat2$norm_max <- round(apply(dat2[, grep("lp_norm", >> names(dat2))], >> >> 1, function(x) { >> >> max(abs(x), na.rm = TRUE)...
2017 Dec 14
0
help with recursive function
...mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, sd, na.rm = TRUE), 3) dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, function(x) { max(abs(x), na.rm = TRUE) }), 3) data1 <- dat2 %>% gather(key, value, -uniqueid,...
2017 Dec 14
0
help with recursive function
...mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, sd, na.rm = TRUE), 3) dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, function(x) { max(abs(x), na.rm = TRUE) }), 3) stopifnot(!(any(dat2$norm_sd >= 1))) if (!(...
2017 Dec 14
2
help with recursive function
..., sep = ".")) %>% >> >> spread(key = field_rep, value = lp) %>% mutate_at(.vars = >> grep("_", >> >> names(.)), funs(norm = round(scale(.), 3))) >> >> dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], >> >> 1, sd, na.rm = TRUE), 3) >> >> dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], >> >> 1, function(x) { >> >> max(abs(x), na.rm = TRUE) >>...
2017 Dec 14
1
help with recursive function
...field_rep = paste(field_rep, "lp", sep = ".")) %>% > spread(key = field_rep, value = lp) %>% mutate_at(.vars = > grep("_", > names(.)), funs(norm = round(scale(.), 3))) > dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], > 1, sd, na.rm = TRUE), 3) > dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], > 1, function(x) { > max(abs(x), na.rm = TRUE) > }), 3) > data1 <- dat2 %>%...
2017 Dec 14
2
help with recursive function
...mutate(field_rep = paste(field_rep, "lp", sep = ".")) %>% spread(key = field_rep, value = lp) %>% mutate_at(.vars = grep("_", names(.)), funs(norm = round(scale(.), 3))) dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, sd, na.rm = TRUE), 3) dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], 1, function(x) { max(abs(x), na.rm = TRUE) }), 3) stopifnot(any(!dat2$norm_sd) >= 1) i...
2017 Dec 14
0
help with recursive function
...te(field_rep, "lp", sep = ".")) %>% > > spread(key = field_rep, value = lp) %>% mutate_at(.vars = > grep("_", > > names(.)), funs(norm = round(scale(.), 3))) > > dat2$norm_sd <- round(apply(dat2[, grep("lp_norm", names(dat2))], > > 1, sd, na.rm = TRUE), 3) > > dat2$norm_max <- round(apply(dat2[, grep("lp_norm", names(dat2))], > > 1, function(x) { > > max(abs(x), na.rm = TRUE) > > }), 3) > >...