Skip to content

Commit

Permalink
re-render; added DOI
Browse files Browse the repository at this point in the history
  • Loading branch information
agrogan1 committed May 2, 2024
1 parent 187bbba commit f8f9437
Show file tree
Hide file tree
Showing 9 changed files with 348 additions and 83 deletions.
222 changes: 214 additions & 8 deletions cp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.3.433">
<meta name="generator" content="quarto-1.4.551">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

<meta name="author" content="Andy Grogan-Kaylor">
<meta name="dcterms.date" content="2023-09-13">
<meta name="dcterms.date" content="2024-05-02">

<title>Earlier Research on Corporal Punishment</title>
<style>
Expand Down Expand Up @@ -39,6 +39,33 @@
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>

<script type="text/javascript">
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
window.Quarto = {
typesetMath
};
</script>

<link rel="stylesheet" href="styles.css">
</head>

Expand Down Expand Up @@ -68,16 +95,18 @@ <h1 class="title">Earlier Research on Corporal Punishment</h1>
<div>
<div class="quarto-title-meta-heading">Published</div>
<div class="quarto-title-meta-contents">
<p class="date">September 13, 2023</p>
<p class="date">May 2, 2024</p>
</div>
</div>


</div>



</header>


<blockquote class="blockquote">
<p>I have authored, and collaborated on, a number of studies of corporal punishment. In my research, I have consistently found that parental use of corporal punishment is associated with undesirable increases in outcomes like antisocial behavior, as well as anxiety and depression among children. These findings are robust–and consistent across many different groups of parents and families–despite the fact that I have used statistical models which control for a number of possible alternative explanations.</p>
</blockquote>
Expand All @@ -92,7 +121,7 @@ <h1>Articles:</h1>
<p><strong>Methods:</strong> This study used data from the Fragile Families and Child Wellbeing Study (n = 2211), a large cohort sample of low-income urban families. Multiple-group autoregressive cross-lagged models examined the associations between maternal spanking and child externalizing behavior when children were ages 1, 3, and 5. Moderation of attachment style was examined using structural invariance testing.</p>
<p><strong>Results:</strong> For children with an insecure parent-child attachment style, spanking at age 1 was associated with externalizing behavior at age 3. However, for children with a secure parent-child attachment style, the association between maternal spanking at age 1 and child externalizing behavior at age 3 was absent. Attachment style did not moderate the association between maternal spanking at age 3 and externalizing behavior at age 5, suggesting that spanking at age 3 is associated with deleterious outcomes at age 5, regardless of attachment style.</p>
<p><strong>Conclusions:</strong> Results suggest that, even in the context of a secure attachment style, spanking is associated with adverse outcomes in early childhood. Findings support the American Academy of Pediatrics 2018 policy statement, which encourages parents to avoid spanking when disciplining children. Results suggest that children, regardless of attachment style, may benefit from policies and services that promote non-violent forms of discipline.</p>
<p><strong>Ward, K. P., Lee, S. J., Limb, G., Grogan-Kaylor, A. (In Press). Physical punishment and child externalizing behavior: Comparing American Indian, White, and African American children. <em>Journal of Interpersonal Violence</em>.</strong></p>
<p><strong>Ward, K. P., Lee, S. J., Limb, G., Grogan-Kaylor, A. (In Press). Physical punishment and child externalizing behavior: Comparing American Indian, White, and African American children. <em>Journal of Interpersonal Violence</em>. <a href="https://doi.org/10.1177/0886260519861678">https://doi.org/10.1177/0886260519861678</a></strong></p>
<p>The current study examined the associations of maternal spanking and child wellbeing for American Indian children. Analyses examined if, compared to White and African American children, spanking of American Indian children was associated with adverse child outcomes. Using a community-based sample of 3,632 children (1,183 White, 2,183 African American, 266 American Indian), multiple-group autoregressive cross-lagged models examined the association between maternal spanking and child externalizing behavior across the first five years of life. Rates of spanking for American Indian and White children were similar at all three time points (age 1, age 3, and age 5). The observed associations between spanking and child externalizing behavior for American Indian children were small but statistically significant and consistent with those the associations reported in prior studies of White and African American children. Results suggest that the positive association between spanking and externalizing behavior among American Indian children was not distinguishable from the associations found among White and African American children. Results of this study can be interpreted in light of the recent American Academy of Pediatrics statement that encourages pediatricians to counsel parents against the use of physical punishment. Similar to White and African American families, American Indian children may benefit from reducing or eliminating the use of physical punishment.</p>
<p><strong>Cuartas, J., Grogan-Kaylor, A., Ma, J., Castillo, B. (In Press). Civil Conflict, Domestic Violence, and Poverty as Predictors of Corporal Punishment in Colombia, <em>Child Abuse and Neglect.</em> </strong></p>
<p><strong>Background:</strong> With lingering effects from more than 50 years of war, young children in Colombia are exposed to multiple risk factors such as poverty, civil conflict, and domestic violence. In addition to these environmental stressors, public and legal support for corporal punishment remains high, which is shown by the high prevalence of young children exposed to corporal punishment in Colombia.</p>
Expand Down Expand Up @@ -256,10 +285,27 @@ <h1>Articles:</h1>
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
Expand All @@ -269,8 +315,17 @@ <h1>Articles:</h1>
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
Expand All @@ -282,7 +337,130 @@ <h1>Articles:</h1>
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
return note.innerHTML;
if (note) {
return note.innerHTML;
} else {
return "";
}
});
}
const xrefs = window.document.querySelectorAll('a.quarto-xref');
const processXRef = (id, note) => {
// Strip column container classes
const stripColumnClz = (el) => {
el.classList.remove("page-full", "page-columns");
if (el.children) {
for (const child of el.children) {
stripColumnClz(child);
}
}
}
stripColumnClz(note)
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
if (note.children && note.children.length > 2) {
container.appendChild(note.children[0].cloneNode(true));
for (let i = 1; i < note.children.length; i++) {
const child = note.children[i];
if (child.tagName === "P" && child.innerText === "") {
continue;
} else {
container.appendChild(child.cloneNode(true));
break;
}
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
return container.innerHTML
} else {
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
// Remove any anchor links if they are present
const anchorLink = note.querySelector('a.anchorjs-link');
if (anchorLink) {
anchorLink.remove();
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
// TODO in 1.5, we should make sure this works without a callout special case
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
const xref = xrefs[i];
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
try { hash = new URL(url).hash; } catch {}
}
if (hash) {
const id = hash.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note !== null) {
try {
const html = processXRef(id, note.cloneNode(true));
instance.setContent(html);
} finally {
instance.enable();
instance.show();
}
} else {
// See if we can fetch this
fetch(url.split('#')[0])
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.getElementById(id);
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
} else {
// See if we can fetch a full url (with no hash to target)
// This is a special case and we should probably do some content thinning / targeting
fetch(url)
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.querySelector('main.content');
if (note !== null) {
// This should only happen for chapter cross references
// (since there is no id in the URL)
// remove the first header
if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
note.children[0].remove();
}
const html = processXRef(null, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
}, function(instance) {
});
}
let selectedAnnoteEl;
Expand Down Expand Up @@ -326,6 +504,7 @@ <h1>Articles:</h1>
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
div.style.left = 0;
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
Expand All @@ -351,6 +530,32 @@ <h1>Articles:</h1>
});
selectedAnnoteEl = undefined;
};
// Handle positioning of the toggle
window.addEventListener(
"resize",
throttle(() => {
elRect = undefined;
if (selectedAnnoteEl) {
selectCodeLines(selectedAnnoteEl);
}
}, 10)
);
function throttle(fn, ms) {
let throttle = false;
let timer;
return (...args) => {
if(!throttle) { // first call gets through
fn.apply(this, args);
throttle = true;
} else { // all the others get throttled
if(timer) clearTimeout(timer); // cancel #2
timer = setTimeout(() => {
fn.apply(this, args);
timer = throttle = false;
}, ms);
}
};
}
// Attach click handler to the DT
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
for (const annoteDlNode of annoteDls) {
Expand Down Expand Up @@ -414,4 +619,5 @@ <h1>Articles:</h1>




</body></html>
4 changes: 2 additions & 2 deletions cp/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: "Andy Grogan-Kaylor"
date: "today"
format:
html:
theme: cosmo
theme: yeti
toc: false
number-sections: false
css: styles.css
Expand Down Expand Up @@ -39,7 +39,7 @@ of attachment style.
**Conclusions:** Results suggest that, even in the context of a secure attachment style, spanking is associated with adverse outcomes in early childhood. Findings support the American Academy of Pediatrics 2018 policy statement, which encourages parents to avoid spanking when disciplining children. Results suggest that children, regardless of attachment style, may
benefit from policies and services that promote non-violent forms of discipline.

**Ward, K. P., Lee, S. J., Limb, G., Grogan-Kaylor, A. (In Press). Physical punishment and child externalizing behavior: Comparing American Indian, White, and African American children. *Journal of Interpersonal Violence*.**
**Ward, K. P., Lee, S. J., Limb, G., Grogan-Kaylor, A. (In Press). Physical punishment and child externalizing behavior: Comparing American Indian, White, and African American children. *Journal of Interpersonal Violence*. [https://doi.org/10.1177/0886260519861678](https://doi.org/10.1177/0886260519861678)**

The current study examined the associations of maternal spanking and child wellbeing for American Indian children. Analyses examined if, compared to White and African American children, spanking of American Indian children was associated with adverse child outcomes. Using a community-based sample of 3,632 children (1,183 White, 2,183 African American, 266 American Indian), multiple-group autoregressive cross-lagged models examined the association between maternal spanking and child externalizing behavior across the first five years of life. Rates of spanking for American Indian and White children were similar at all three time points (age 1, age 3, and age 5). The observed associations between spanking and child externalizing behavior for American Indian children were small but statistically significant and consistent with those the associations reported in prior studies of White and African American children. Results suggest that the positive association between spanking and externalizing behavior among American Indian children was not distinguishable from the associations found among White and African American children. Results of this study can be interpreted in light of the recent American Academy of Pediatrics statement that encourages pediatricians to counsel parents against the use of physical punishment. Similar to White and African American families, American Indian children may benefit from reducing or eliminating the use of physical punishment.

Expand Down
Loading

0 comments on commit f8f9437

Please sign in to comment.