Meta tags:
description= Stata, Sociology, and Diffusion Models;
Headings (most frequently used words):
to, of, for, the, and, resamples, 50, strata, results, list, number, significant, effect, culture, on, test, data, set, by, treatment, with, when, code, bundling, status, background, readings, organizational, wokeness, resampling, approach, power, analysis, import, pre, display, observed, range, assumptions, up, resampled, do, regressions, store, interpret, stratified, samples, dungeon, crawling, together, some, notes, online, teaching, making, videos, exams, term, paper, mistakes, avoid, vpn, edudammerung, batches, save, tests, drop, elements, if, eu, migrants, networks, reading, geeks, archives, recent, comments, blogroll, references, resources, dist, sample, size, common, rfts, one, fixed, other, estimated, gender, unbalanced, shopping, mise, en, scene, recording, editing, upload, reveal, make, trailer, thumbnails,
Text of the page (most frequently used words):
the (561), and (282), for (140), that (128), you (125), this (97), but (82), with (67), are (60), from (51), can (45), which (44), have (43), one (43), test (43), there (40), will (40), not (39), was (36), data (33), then (32), list (30), they (29), social (28), just (28), students (28), treatment (28), more (27), time (27), than (26), like (25), about (25), use (25), size (25), only (24), work (24), need (24), your (22), two (22), #networks (21), some (21), first (21), them (21), want (20), how (19), camera (19), week (18), much (18), all (18), when (18), case (18), vector (18), batches (18), results (18), see (18), video (18), sample (18), pilot (18), get (17), 2010 (17), quarter (17), 2008 (17), batch (17), what (16), 2011 (16), power (16), few (16), would (16), set (16), year (16), deaths (16), make (16), 2009 (15), may (15), lot (15), should (15), don (15), has (15), because (14), book (14), good (14), each (14), people (14), number (14), had (14), many (14), department (14), hours (14), lectures (14), family (14), backdrop (14), male (14), code (13), other (13), could (13), very (13), out (13), since (13), both (13), part (13), effect (13), were (13), who (13), means (13), market (13), lecture (13), resamples (13), now (12), notes (12), march (12), also (12), enough (12), recording (12), per (12), binomial (12), openai (12), population (11), theory (11), april (11), 2012 (11), 2013 (11), same (11), take (11), length (11), clear (11), replace (11), before (11), even (11), value (11), class (11), frame (11), glm (11), write (10), create (10), academic (10), books (10), october (10), 2016 (10), 2021 (10), analysis (10), didn (10), these (10), between (10), here (10), table (10), again (10), testing (10), outcome (10), game (10), strata (10), z_emp (10), things (9), 2020 (9), teaching (9), july (9), november (9), 2017 (9), really (9), actually (9), through (9), mean (9), where (9), note (9), positive (9), infected (9), tests (9), either (9), chance (9), their (9), quarantine (9), screen (9), rules (9), deviance (9), stars (9), values (9), text (8), stata (8), reading (8), june (8), 2014 (8), 2015 (8), sociology (8), whole (8), network (8), expect (8), model (8), into (8), less (8), new (8), job (8), approach (8), down (8), doing (8), short (8), best (8), coefficients (8), status (8), pdf (8), until (8), least (8), most (8), right (8), fall (8), give (8), think (8), using (8), add (8), editing (8), admitted (8), 100 (8), results_b (8), object (8), results_5050 (8), nrange_5050 (8), nrange (8), amd (8), gpus (8), culture (7), research (7), migrants (7), online (7), september (7), january (7), february (7), random (7), early (7), state (7), main (7), date (7), post (7), way (7), without (7), etc (7), graph (7), space (7), well (7), summary (7), read (7), cases (7), capacity (7), still (7), over (7), its (7), papers (7), error (7), answer (7), takes (7), know (7), thumbnail (7), upload (7), slides (7), gives (7), find (7), microphone (7), gender (7), degrees (7), freedom (7), 1000 (7), trials (7), already (6), raw (6), december (6), 2018 (6), half (6), small (6), second (6), thing (6), including (6), pretty (6), several (6), probably (6), together (6), years (6), those (6), any (6), after (6), demand (6), hard (6), instance (6), rate (6), having (6), though (6), exams (6), scenario (6), trace (6), vpn (6), unless (6), tas (6), minutes (6), questions (6), sure (6), share (6), light (6), wide (6), spent (6), edition (6), estimate (6), 500 (6), ncol (6), names (6), est (6), dflist (6), column (6), wordpress (5), sign (5), blog (5), ucla (5), science (5), partner (5), look (5), different (5), big (5), group (5), models (5), civil (5), capital (5), three (5), parameter (5), algorithm (5), 1970s (5), concepts (5), centrality (5), weak (5), basically (5), however (5), keep (5), gen (5), back (5), too (5), during (5), migrant (5), mostly (5), relatively (5), low (5), seems (5), action (5), doesn (5), large (5), ten (5), level (5), negative (5), person (5), pool (5), necessary (5), assume (5), covid (5), competitive (5), revolution (5), end (5), weeks (5), let (5), hour (5), effects (5), emails (5), term (5), longer (5), next (5), recorded (5), makes (5), zoom (5), webcam (5), selfie (5), stand (5), significant (5), nrange_b (5), matrix (5), sample_n (5), estimation (5), corporate (5), nvidia (5), site (4), com (4), comment (4), comments (4), content (4), lena (4), simulation (4), strange (4), imdb (4), august (4), editor (4), netlogo (4), economic (4), diffusion (4), high (4), school (4), show (4), multiple (4), era (4), faster (4), effectively (4), old (4), kind (4), assumptions (4), days (4), long (4), society (4), within (4), sense (4), nothing (4), better (4), elements (4), third (4), late (4), found (4), took (4), useful (4), alpha (4), order (4), version (4), anyway (4), especially (4), response (4), meant (4), intro (4), being (4), while (4), csv (4), lines (4), format (4), real (4), sum (4), save (4), line (4), policies (4), almost (4), overall (4), worst (4), operation (4), mare (4), nostrum (4), deal (4), published (4), made (4), whether (4), pre (4), issue (4), kick (4), base (4), pooled (4), kits (4), entire (4), individual (4), samples (4), example (4), exposed (4), release (4), expected (4), single (4), every (4), given (4), creative (4), suggestion (4), industry (4), apply (4), backlog (4), education (4), likely (4), china (4), huge (4), economy (4), universities (4), hit (4), similar (4), come (4), might (4), worth (4), bigger (4), run (4), below (4), amount (4), always (4), laptop (4), rather (4), readings (4), grade (4), another (4), total (4), mistake (4), match (4), wouldn (4), exam (4), day (4), did (4), our (4), traditional (4), say (4), experience (4), click (4), file (4), titles (4), powerpoint (4), change (4), files (4), white (4), edit (4), background (4), filmora (4), yet (4), open (4), close (4), ratio (4), usb (4), display (4), workflow (4), twist (4), osr (4), games (4), ucb_b (4), intercept (4), ucb_a (4), trials_b (4), dept (4), filter (4), depa (4), dflist_b (4), adjust (4), pilot_small (4), dflist_5050 (4), 9005 (4), race (4), skrentny (4), organizational (4), diversity (4), started (3), website (3), email (3), collapse (3), center (3), posts (3), afoot (3), recent (3), 2019 (3), 2022 (3), resampling (3), variables (3), history (3), articles (3), types (3), ties (3), country (3), empirical (3), fan (3), structure (3), eventually (3), overlap (3), cover (3), topics (3), process (3), includes (3), assumption (3), sometimes (3), textbook (3), written (3), covers (3), follow (3), groups (3), square (3), play (3), works (3), slow (3), world (3), intuitive (3), under (3), tab (3), immediately (3), vary (3), done (3), specifically (3), behind (3), great (3), paper (3), basic (3), system (3), top (3), wrote (3), ferguson (3), month (3), export (3), lower (3), migration (3), spring (3), perhaps (3), getting (3), last (3), ended (3), months (3), been (3), budget (3), labor (3), assumes (3), unfortunately (3), running (3), solution (3), false (3), crucial (3), estimates (3), suppose (3), particular (3), exactly (3), simply (3), implies (3), remaining (3), often (3), thus (3), tested (3), allow (3), access (3), everyone (3), international (3), nobody (3), illustration (3), member (3), extremely (3), entering (3), recession (3), higher (3), college (3), bad (3), reasons (3), full (3), tuition (3), infections (3), normal (3), taiwan (3), home (3), realized (3), entirely (3), anything (3), preference (3), going (3), problem (3), usual (3), never (3), helps (3), paid (3), server (3), choose (3), themselves (3), off (3), ensure (3), avoid (3), able (3), whatever (3), gave (3), worry (3), seen (3), 400 (3), media (3), select (3), seconds (3), title (3), card (3), material (3), homework (3), university (3), appear (3), computer (3), pass (3), pop (3), put (3), contrasting (3), color (3), trying (3), walking (3), start (3), usually (3), later (3), videos (3), office (3), windows (3), aspect (3), realize (3), help (3), try (3), suggest (3), green (3), times (3), making (3), tradition (3), inventing (3), genre (3), labyrinth (3), lord (3), fantasy (3), specific (3), retro (3), clone (3), swords (3), wizardry (3), original (3), women (3), dummy (3), resample (3), call (3), formula (3), residuals (3), 9607 (3), std (3), dispersion (3), taken (3), null (3), residual (3), aic (3), fisher (3), scoring (3), iterations (3), 9768 (3), ucbadmissions (3), 550 (3), 600 (3), 800 (3), ucb_tidy (3), mutate (3), keeps (3), track (3), row (3), nrow (3), colnames (3), int (3), positions (3), followed (3), nanes (3), regression (3), capture (3), abs (3), modify (3), trials_5050 (3), control (3), stratified (3), resampled (3), est_emp (3), responsibility (3), activism (3), affirmative (3), edelman (3), charles (3), chips (3), bundling (3), design (2), required (2), view (2), log (2), subscribed (2), subscribe (2), privacy (2), account (2), 128 (2), free (2), perl (2), davis (2), technology (2), gated (2), resources (2), mac (2), sociological (2), org (2), sociologist (2), lseltzer (2), gabrielrossman (2), edudammerung (2), 2025 (2), typesetting (2), organizations (2), regular (2), loops (2), financial (2), crisis (2), cleaning (2), categorization (2), rss (2), interesting (2), journal (2), distinct (2), understand (2), county (2), across (2), theoretical (2), watts (2), strogatz (2), 1998 (2), 2004 (2), divides (2), somewhat (2), approaches (2), gets (2), modern (2), analytical (2), isn (2), assuming (2), stuff (2), accurate (2), matthew (2), economist (2), canonical (2), beyond (2), inspired (2), slippage (2), literature (2), links (2), tower (2), speed (2), playing (2), around (2), library (2), ring (2), visualization (2), tweak (2), user (2), provides (2), along (2), language (2), anyone (2), learned (2), events (2), teach (2), showing (2), degree (2), connections (2), betweenness (2), obviously (2), introduction (2), else (2), recommend (2), understanding (2), non (2), review (2), said (2), went (2), opinion (2), scale (2), does (2), sort (2), gabriel (2), listofdeathsactual (2), starting (2), import (2), drop (2), lab (2), png (2), trends (2), european (2), pro (2), although (2), various (2), effort (2), death (2), major (2), shipwreck (2), italians (2), launched (2), successful (2), summer (2), spike (2), created (2), briefly (2), dog (2), throughout (2), regime (2), rose (2), 2006 (2), dropped (2), presumably (2), jump (2), noisy (2), nonetheless (2), attempting (2), modal (2), meeting (2), delete (2), element (2), indexing (2), dummies (2), update (2), question (2), provide (2), city (2), hundred (2), equivalent (2), zero (2), poisson (2), considerably (2), infection (2), rates (2), ratchet (2), repeating (2), suspected (2), twice (2), once (2), diagnoses (2), previous (2), divide (2), further (2), individually (2), sufficient (2), substantial (2), positives (2), based (2), actual (2), gain (2), draw (2), distribution (2), virus (2), sampling (2), loss (2), quickly (2), effective (2), grad (2), methods (2), phd (2), inventory (2), graduate (2), cohort (2), fine (2), got (2), smaller (2), clears (2), shock (2), looking (2), talented (2), absurdly (2), cultural (2), thereafter (2), 1977 (2), funding (2), point (2), life (2), public (2), abroad (2), above (2), americans (2), travel (2), coming (2), worse (2), drive (2), sectors (2), gdp (2), firms (2), away (2), towards (2), slack (2), endowments (2), support (2), repeat (2), surprisingly (2), schools (2), saw (2), weird (2), campus (2), escape (2), valve (2), remote (2), service (2), saying (2), future (2), assigning (2), assignment (2), instructional (2), decided (2), wanted (2), theories (2), field (2), reasonable (2), pairs (2), massive (2), complicated (2), equal (2), wasn (2), answering (2), attempt (2), ton (2), advance (2), student (2), arrive (2), night (2), business (2), stuck (2), likewise (2), morning (2), tight (2), colleagues (2), period (2), leaving (2), please (2), reports (2), suggests (2), easier (2), cheat (2), cheating (2), fast (2), increase (2), moodle (2), ridiculous (2), deep (2), kaltura (2), trailer (2), trailers (2), discuss (2), thursday (2), why (2), feel (2), important (2), preliminary (2), past (2), perspective (2), syllabus (2), classes (2), four (2), ready (2), true (2), blackboard (2), software (2), slower (2), runtime (2), placeholder (2), pngs (2), crop (2), news (2), caster (2), convert (2), function (2), leave (2), histogram (2), remember (2), left (2), legible (2), solid (2), beginning (2), 1080p (2), box (2), folder (2), cloud (2), interruption (2), goes (2), record (2), nature (2), such (2), external (2), bars (2), side (2), specify (2), audio (2), slightly (2), face (2), spoon (2), arm (2), myself (2), bit (2), instead (2), shaped (2), hence (2), reason (2), place (2), gooseneck (2), appears (2), near (2), eye (2), exchange (2), bought (2), items (2), far (2), printing (2), hall (2), normally (2), curve (2), obvious (2), says (2), fits (2), novel (2), community (2), distinctive (2), played (2), oral (2), called (2), dave (2), arneson (2), gary (2), gygax (2), traditionalist (2), ogl (2), crawl (2), classics (2), dungeon (2), recreate (2), 1974 (2), 1978 (2), osric (2), copies (2), gaming (2), exists (2), admit (2), min (2), median (2), max (2), maletrue (2), signif (2), codes (2), 001 (2), 769 (2), statistical (2), standard (2), happens (2), 150 (2), 200 (2), 250 (2), 300 (2), 350 (2), 194 (2), 806 (2), 450 (2), 650 (2), 700 (2), 750 (2), 201 (2), 799 (2), 850 (2), 900 (2), 950 (2), n_a (2), rbind (2), fixed (2), estimated (2), hypothesis (2), pilot_control (2), pilot_treatment (2), confirm (2), script (2), significance (2), step (2), scores (2), store (2), creates (2), datasets (2), range (2), estimators (2), 4823 (2), binary (2), figured (2), coauthor (2), package (2), macleod (2), contentious (2), governance (2), evidence (2), politics (2), political (2), practices (2), 2002 (2), legal (2), rights (2), dobbin (2), rise (2), human (2), essay (2), benefits (2), shares (2), sale (2), knows (2), buy (2), returns (2), apple (2), suppliers (2), name, loading, bar, manage, subscriptions, reader, report, join, subscribers, unix, tutorial, services, safari, internet, movie, database, ninja, cpanda, california, references, jenn, gabi, huiber, tidbit, michael, mitchell, daily, imagination, statistics, harvard, soc2econ, rense, corten, religion, curiosities, permutations, eric, booth, econometrics, disgruntled, drip, ssrc, blogroll, cogiddo, jdgalt, soc, universe, kenny, archives, superstar, socm176, shell, scraping, satire, expressions, python, philosophy, phenomenology, macros, lyx, graphs, genetics, ethnomethodology, epistemology, economics, culure, causality, bayesian, asa, search, pkremp, geeks, older, aside, maps, sexual, discover, implicit, taboo, dating, capone, conflate, neither, ignore, taking, seriously, prohibition, organized, crime, swedish, democratic, party, spread, jumped, traveling, activists, demonstration, hedström, sandell, stern, 2000, smith, papachristos, bearman, moody, stovel, john, levi, martin, fairly, neatly, deals, kinship, moieties, emphasizes, patronage, scalable, structures, quite, complex, systems, sections, foundations, iii, dynamics, related, threshold, pet, peeves, bottom, ohoas, restrictive, simplifying, oxford, handbook, jackson, ironic, saul, tsarsus, plurality, testament, guess, technical, ones, wasserman, faust, newer, gripe, mention, putnam, distinguishing, bridging, bonding, ask, monkey, paw, specifying, kinds, method, body, helpful, virtual, tinker, toys, tactile, giant, component, erdos, renyi, preferential, attachment, lattice, team, assembly, tabs, shows, incredibly, friendly, grok, parameters, thinks, citations, primary, dialect, logo, born, elementary, mileage, serious, igraph, statnet, conveying, intuition, combat, iliad, undergraduates, art, informal, introduces, nodes, edges, difference, hold, pecking, ungated, socarxiv, contexts, fun, asked, draft, enumerated, besides, hierarchy, tree, sociometry, citation, homophily, triadic, closure, clustering, path, worlds, bridges, structural, holes, externalities, influence, leadership, lattices, bonacich, dependence, listed, issues, anthropology, prior, conceptual, complement, hierarchies, historical, studies, section, sna, specialist, http, unitedagainstrefugeedeaths, uploads, ran, translator, stripped, regex, digit, users, gabri, dropbox, documents, codeandculture, eumigrants, delimited, varnames, regexm, v30, dmy, wofd, mofd, yofd, eudeaths, dta, var, twoway, declined, levels, peak, describe, union, states, widely, varying, enacting, restrictionist, others, angela, merkel, immigration, statements, circa, seem, yielded, moral, hazard, simultaneous, agreement, turkey, obstruct, flows, triton, replaced, pan, ambitious, lull, italian, navy, rescue, floundering, vessels, humanitarian, peltzman, sea, skyrocketed, strain, cancelled, decreased, bark, notwithstanding, syrian, war, sharply, coincides, libya, gaddafi, suppressing, traffic, secret, italy, slowly, 1990s, 2007, reflects, declining, isolated, yesterday, died, reach, settle, europe, originally, cause, suicides, homicides, terrestrial, accidents, curious, timeline, occurred, converted, tables, united, intercultural, 361, guardian, apologies, posting, screenshot, hate, recursive, regardless, sourcecode, tags, fwiw, substantive, contain, isolates, region, occurs, deleting, conservative, generates, simulated, objects, simulates, emergent, behavior, chokes, certain, conditions, mess, shorter, flagging, ascending, descending, used, elsewhere, rich, risk, increasing, negatives, lack, bench, knowledge, experts, implemented, twitter, collects, thousand, nasal, swabs, finds, subjects, dichotomous, infer, zeroes, corresponds, sounds, individuals, numbers, diverge, finally, monitor, indication, distancing, diverting, clinical, customs, applications, survey, prove, inadequate, procedure, borrow, approximately, protocol, collected, greatly, economize, ideally, applying, iteratively, return, meanwhile, application, recently, arrived, travelers, weekly, medical, personnel, responders, preferable, situation, alternately, available, probabilities, depending, larger, afford, information, precisely, cleared, must, outline, infectiousness, creating, tracking, known, confidence, intervals, metropolitan, areas, ration, identifiable, precision, expense, delay, severe, shortage, needed, expand, imply, presumptively, sick, relaxing, allowing, epidemic, critical, remains, finite, emphasize, recover, telling, learn, 2026, 2027, birth, cohorts, appreciably, demographic, happened, fresh, phds, suspended, entrance, exclude, applicants, backgrounds, grandpa, landlord, reinstated, 2023, contract, flyout, podunk, matriculating, extraordinarily, tomorrow, colleges, hardest, distinctly, impacted, cruise, ship, closer, shortfalls, treating, rule, pay, profit, gone, optimistic, couple, drives, switch, masks, thermometers, gps, enabled, cell, phone, apps, achieves, relative, normalcy, repatriated, citizens, subject, demonstrated, singapore, health, switching, mass, brought, feasible, warned, restrictions, banned, nearly, foreigners, asian, countries, houses, desert, town, weren, gas, gallon, devaluation, underlying, assets, sovereign, debt, seeing, shut, fractional, industries, foregone, bankrupt, won, bounce, relaxed, devalued, trend, globalization, autarky, efficiency, stock, finances, publics, straining, fiscal, federal, government, prediction, particularly, recall, approved, crash, essentially, private, crater, slashed, crises, openings, postdocs, abds, delayed, defending, proven, totally, turns, bring, tech, fails, download, percent, clogged, mirrored, piracy, price, paywall, reliably, suspect, downtime, grader, seminar, project, intrinsically, collaborative, grading, personally, absorb, excess, cuts, reduce, assign, weight, timed, current, studying, reasonably, stay, suggested, appreciate, delighted, logistical, burden, partners, paired, pairing, unpaired, wants, mistakes, watermark, prompts, idea, uploaded, coursehero, successfully, distribute, dealing, sent, scheduled, inboxes, offer, evening, seating, asia, sleeping, korea, overseas, 3am, problems, members, bandwidth, requires, leak, tighter, blue, bluebooks, choice, heard, feels, bucket, candy, porch, halloween, misconduct, own, peers, anecdata, bluebook, consuming, clumsy, google, keywords, prompt, ctrl, result, type, easy, catch, typically, loosely, resembles, turnitin, automates, berkeley, ccle, admin, panel, gallery, publish, ellipsis, pencil, memorable, figure, auto, generate, choices, yes, agree, bury, ugly, dork, eight, starts, ensures, vendor, artificial, intelligence, designed, unflattering, fix, thumbnails, jessica, collett, lecure, materials, discussing, watch, engagement, independently, addition, counterfactual, uniformly, reported, disaster, restaurant, ultimately, counts, tuesday, lead, grievance, undergraduate, subsequent, stop, blame, memos, complained, unreasonable, explain, awhile, hide, canvas, faced, streaming, released, appeared, saturday, reveal, active, cpu, special, mercifully, resize, partial, finalize, series, placeholders, description, slide, key, words, dark, grey, leaves, plenty, clearly, bookshelf, garden, layer, optionally, opacity, blending, scissors, cut, involves, following, 720p, feeling, needs, glorified, podcast, finished, web, refuses, treat, clean, directory, subfolders, rawvideo, cleanvideo, 01_intro_and_econ, complete, copy, locally, synced, storage, painful, plan, unsyncing, barks, delivery, noise, silence, earlier, natural, break, pause, perfect, hassle, grows, haven, occasion, tablet, whiteboard, meetings, retrieve, dynamic, hasn, demo, rstudio, mute, notifications, window, sharing, resolution, 1280, 720, 1920, 1080
Text of the page (random words):
ing trials is the number of times you want to test each sample size higher values for trials are slower but make the results more reliable i suggest starting with 100 or 1000 for exploratory purposes and then going to 10 000 once you re pretty sure you have a good value and want to confirm it the arithmetic is much simpler if you stick with powers of ten nrange is a vector of values you want to test out note that the z value for your pilot gives you a hint if it s about 2 you should try values similar to those in the pilot if it s much smaller than 2 you should try values much bigger trials 1000 how many resamples per sample size nrange c 50 60 70 80 90 100 values of sample size to test set up resampled data do the regressions and store the results this is the main part of the script it creates the resampled datasets in a list called dflist the list is initialized empty and dataframes are stored in the list as they are generated store z scores and sample size in matrix results dflist list k 1 this object keeps track of which row of the results object to write to results matrix nrow length nrange trials ncol 3 data frame adjust ncol value to be length as vector z_emp 1 colnames results c int treatment n replace the vector with names for as vector z_emp positions followed by n the nanes need not match the names in the regression table but should capture the same concepts for i in 1 length nrange dflist i list for j in 1 trials dflist i j sample_n pilot_small size nrange i replace t est glm outcome treatment data dflist i j family binomial summary adjust the estimation to be similar to whatever you did in the test estimation block of code just using data dflist i j instead of data pilot z est coefficients 3 you may need to tweak this line if not using glm results k c as vector z nrange i k k 1 create vector summarizing each resample as significant 1 or not significant 0 results treatment stars 0 results treatment stars abs results treatment 1 96 1 interpret results dist of z by sample size as an optional first step plot the distributions of z scores across resamples by sample size results ggplot mapping aes x treatment geom_density alpha 0 4 theme_classic facet_wrap n number of significant resamples for treatment effect next make a table for what you really want to know which is how often resamples of a given sample size gives you statistical significance this rate can be interpreted as power table results n results treatment stars 0 1 50 355 645 60 252 748 70 195 805 80 137 863 90 105 895 100 66 934 as you can see n 70 seems to give about 80 power to confirm this and get a more precise value you d probably want to run the script again but this time with nrange c 67 68 69 70 71 72 73 and trials 10000 stratified samples 50 50 strata common for rfts note that you can modify the approach slightly to have stratified resamples for instance you might want to ensure an equal number of treatment and outcome cases in each resample to mirror a 50 50 random assignment design this should mostly be an issue for relatively small resamples as for large resamples you are likely to get very close to the ratio in the pilot test just by chance to do this we modify the algorithm by first splitting the pilot data into treatment and control data frames and then sampling separately from each before recombining but otherwise using the same approach as before pilot_control pilot_small filter treatment 0 pilot_treatment pilot_small filter treatment 1 trials_5050 1000 how many resamples per sample size nrange_5050 c 50 60 70 80 90 100 values of sample size to test nrange_5050 2 round nrange_5050 2 ensure all values of nrange are even dflist_5050 list k 1 this object keeps track of which row of the results object to write to results_5050 matrix nrow length nrange_5050 trials_5050 ncol 3 data frame adjust ncol value to be length as vector z_emp 1 colnames results_5050 c int treatment n replace the vector with names for as vector z_emp positions followed by n the nanes need not match the names in the regression table but should capture the same concepts for i in 1 length nrange_5050 dflist_5050 i list for j in 1 trials_5050 dflist_5050 i j rbind sample_n pilot_control size nrange_5050 i 2 replace t sample_n pilot_treatment size nrange_5050 i 2 replace t est glm outcome treatment data dflist_5050 i j family binomial summary z est coefficients 3 results_5050 k c as vector z nrange_5050 i k k 1 results_5050 treatment stars 0 results_5050 treatment stars abs results_5050 treatment 1 96 1 number of significant resamples for treatment effect with 50 50 strata table results_5050 n results_5050 treatment stars 0 1 50 330 670 60 248 752 70 201 799 80 141 859 90 91 909 100 63 937 not surprisingly our 80 power estimate is still about 70 one fixed strata and the other estimated or perhaps you know the size of a sample in one strata and want to test the necessary size of another strata perhaps a power analysis for a hypothesis specific to strata one gives n 1 as its necessary sample size but you want to estimate a power analysis for a pooled sample where n n 1 n 2 likewise you may wish to estimate the necessary size of an oversample note that if you already have one strata in hand you could modify this code to work but should just use the data for that strata not resamples of it for one fixed and one estimated strata let s assume our pilot test is departments a and b from the ucbadmissions file that we know we need n 500 for 80 power on some hypothesis specific to department a and we are trying to determine how many we need for department b in order to pool and analyze them together i specify dummies for gender male and a dummy for department a vs b ucb_tidy ucbadmissions as_tibble uncount mutate male gender male admitted admit admitted select male admitted dept ucb_a ucb_tidy filter dept a mutate depa 1 ucb_b ucb_tidy filter dept b mutate depa 0 n_a 500 trials_b 1000 how many resamples per sample size nrange_b c 50 100 150 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950 1000 values of sample size to test dflist_b list k 1 this object keeps track of which row of the results object to write to results_b matrix nrow length nrange_b trials_b ncol 4 data frame adjust ncol value to be length as vector z_emp 1 colnames results_b c int male depa n replace the vector with names for as vector z_emp positions followed by n the nanes need not match the names in the regression table but should capture the same concepts for i in 1 length nrange_b dflist_b i list for j in 1 trials_b dflist_b i j rbind sample_n ucb_b size nrange_b i replace t sample_n ucb_a size n_a replace t est glm admitted male depa data dflist_b i j family binomial summary z est coefficients 3 results_b k c as vector z nrange_b i k k 1 add dummy for dept results_b male stars 0 results_b male stars abs results_b male 1 96 1 number of significant resamples for gender effect with unbalanced strata table results_b n results_b male stars 0 1 50 108 892 100 132 868 150 128 872 200 120 880 250 144 856 300 133 867 350 153 847 400 194 806 450 181 819 500 159 841 550 186 814 600 168 832 650 185 815 700 197 803 750 201 799 800 194 806 850 191 809 900 209 791 950 183 817 1000 214 786 this reveals a tricky pattern we see about 90 power when there are either 50 or 100 cases from department b i e 550 600 total including the 500 from department a with trials_b 1000 it s a bit noisy but still apparent that the power drops as we add cases from b and then rises again along a u shaped curve normally you d expect that more sample size would mean more statistical power because standard error is inversely proportional to the square root of degrees of freedom the trick is that this assumes nothing happens to β as it happens ucbadmissions is a famous example of simpson s paradox and specifically the gender effects are much stronger for department a glm admitted male data ucb_a family binomial summary call glm formula admitted male family binomial data ucb_a deviance residuals min 1q median 3q max 1 8642 1 3922 0 9768 0 9768 0 9768 coefficients estimate std error z value pr z intercept 1 5442 0 2527 6 110 9 94e 10 maletrue 1 0521 0 2627 4 005 6 21e 05 signif codes 0 0 001 0 01 0 05 0 1 1 dispersion parameter for binomial family taken to be 1 null deviance 1214 7 on 932 degrees of freedom residual deviance 1195 7 on 931 degrees of freedom aic 1199 7 number of fisher scoring iterations 4 than the gender effects are for department b glm admitted male data ucb_b family binomial summary call glm formula admitted male family binomial data ucb_b deviance residuals min 1q median 3q max 1 5096 1 4108 0 9607 0 9607 0 9607 coefficients estimate std error z value pr z intercept 0 7538 0 4287 1 758 0 0787 maletrue 0 2200 0 4376 0 503 0 6151 signif codes 0 0 001 0 01 0 05 0 1 1 dispersion parameter for binomial family taken to be 1 null deviance 769 42 on 584 degrees of freedom residual deviance 769 16 on 583 degrees of freedom aic 773 16 number of fisher scoring iterations 4 specifically department a strongly prefers to admit women whereas department b has only a weak preference for admitting women the pooled model has a dummy to account for department a generally being much less selective than department b but it tacitly assumes that the gender effect is the same as it has no interaction effect this means that as we increase the size of the department b resample we re effectively flattening the gender slope through compositional shifts towards department b and its weaker preference for women december 3 2021 at 2 14 pm gr dungeon crawling together i ve been reading a lot of osr games and they remind me a lot of the traditionalist phase of the genre trajectory model from lena and peterson s 2008 asr and lena s book banding together osr games are attempts to recreate dungeons and dragons as it was played in the 1970s often by using the ogl think creative commons or gpl for the 2000s version of the game but then changing the rules to be more like 1970s d d for instance here is the first two sentences to labyrinth lord labyrinth lord is not new or innovative this game exists solely as an attempt to help breathe back life into old school fantasy gaming to do some small part in expanding its fan base and here is the start of the intro to swords and wizardry in 1974 gary gygax 1938 2008 and dave arneson 1947 2009 wrote the world s first fantasy role playing game a simple and very flexible set of rules that launched an entirely new genre of gaming unfortunately the original rules are no longer in print even in electronic format the books themselves are becoming more expensive by the day since they are now collector items indeed there is a very good chance that the original game could effectively disappear that s why this game is published when you play swords wizardry you are using those original rules the intro to the first edition of osric basically says we don t expect you to actually play with this book but with your old copies of the 1978 ad d edition however we are writing this so you can create new content ad d compatible content without getting sued the games vary in whether they are attempting to recreate a very specific edition of d d eg ose is a retro clone of the 1981 b x moldvay edition swords and wizardry is a retro clone of the od d 1974 edition osric is a retro clone of ad d from 1978 etc take the overall feel of 1970s d d while using some rules that were invented much later eg basic fantasy rpg five torches deep labyrinth lord put a distinct twist on the game whether that s distinctive new rules dungeon crawl classics a more metal version of the game eg lamentations of the flame princess mork borg or change the genre of story entirely mecha hack mothership mutant crawl classics approach 2 seemed to dominate early on in part for the practical reason that people didn t know how far they could push the ogl but more recent games tend to follow approach 1 or 3 anyway osr is a traditionalist stage but you can trace the whole game back and see all the stages avant garde dave arneson and gary gygax inventing the game as an oral tradition in midwestern wargaming circles scenes the publication of od d and a distinctive split between the game as played by midwest wargamers who had access to the oral tradition and caltech students who only had the incomprehensible published rules and so had to improvise coming up with an unofficial addendum called warlock which later influenced the published rules in part because the first revised edition of the official rules was by a californian industry an explosion of sales in the late 1970s and early 1980s including tie ins to other media tradition osr community beginning c 2008 anyway this could be a dissertation topic for some grad student but this seems like an obvious mesearch trap and i am always of the opinion that research is not worth doing if it only says case x which i care about for reasons other than theory fits theory y rather research ought to say case x fits theory y in a way that suggests novel twist z and i m not yet sure if there s a novel twist here yet that leads us to reconceptualize lena s theory of creative communities rather than just saying yup as expected rpgs are a creative community just like music if you find that twist email me and let me know what you re doing with it november 21 2021 at 1 01 pm gr some notes on online teaching i spent basically all of spring quarter working on advice for colleagues as to how to teach online in fall quarter i actually did it myself and it was a different experience than the theoretical one i had a huge learning curve over the course of the quarter such a big one that if i ever do another online quarter i am probably re recording most of my lectures even though as you ll see recording and editing them was a ton of work anyway here are my notes and reflections on my first term of online teaching making the videos the single biggest lesson is that online teaching is far more work than regular teaching there s always a lot of work answering emails rewriting exams etc but in traditional teaching for an existing prep the actual lecture is just printing out my notes trying to remember my microphone and hdmi dongle and standing in front of an auditorium for two hours and change per week i get the lecture hall 75 minutes twice a week for ten weeks so that s about 25 hours of lecture per quarter and maybe add an hour or two total for walking to the hall and printing out the notes so about 27 hours spent lecturing per class per quarter i spent almost that much time per class per week of instruction on the lectures that is i spent almost ten times more time on recording lectures in fall quarter than i usually do delivering lectures and this is on top of the usual amount of work for emails office hours etc actually i spent more time than usual on this stuff but not absurdly more if you think i m exaggerating or you re wondering how i fo...
|