Useful functions for the Penn State DEPENd Lab (Director: Michael Hallquist)

build_design_matrix | Creates an fmri design matrix, including timing files for for... |

cleanup_regressor | Small utility function to handle any NAs in the regressor... |

concat_design_runs | Concatenate design matrices for each run to form a single... |

convolve_regressor | Helper function used by the summed runs and separate runs... |

cor_heatmap | Function to generate ggplot correlation heatmap |

cor_with_target | This function correlates a set of target variables (target)... |

dependlab | Useful functions for the Penn State DEPENd Lab (Director:... |

detrendts | Detrend a time series up to quadratic trend. Used by... |

example_events | example events structure for build_design_matrix |

example_nuisrun1 | example nuisance regressors for run1 used in... |

example_nuisrun2 | example nuisance regressors for run2 used in... |

example_signals | example signals structure for build_design_matrix |

fir1Bandpass | Apply a FIR-1 bandpass filter a signal. Can low- or high-pass... |

fmri.stimulus | Convolve a regressor with a hemodynamic response function for... |

generate_fsf_contrast_syntax | This function generates syntax for FSL Feat .fsf files for... |

generate_fsf_ev_syntax | This function generates syntax for FSL Feat .fsf files for... |

hrf_convolve_normalize | This function convolves a regressor with a normalized HRF... |

lmer_predict | This function predicts outcome variable from a (g)lmer object... |

mean_impute_items | Function to impute the mean for missing items on a per-case... |

place_dmat_on_time_grid | Function to convert dmat (runs x regressor list) to a... |

qsub_file | This function submits a single script using the qsub command.... |

rat.brain | rat.brain data in Chapter 5 of West, Welch, and Galecki... |

runmean | compute a moving average smooth over a time series (here, a... |

score_das | Scores the Dyadic Adjustment Scale (Spanier 1976) This is for... |

score_ecr | Score the experiences in close relationships - revised... |

visualize_design_matrix | Visualize design matrix, including event onset times and run... |

wait_for_job | This function pauses execution of an R script while a... |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.