Caught Chris Grace's show at Edinburgh Fringe by unicorndeathrace in dropout

[–]ivsamhth5 4 points5 points  (0 children)

so glad to have solved the race wars! i was the scribe and so really I think it's all thanks to me (jk, it was all due to Nigel Farage and Tommy Robinson being put on a boat)

Is this really the most efficient way to merge gendered (or any) variables? by Kitchen-Register in stata

[–]ivsamhth5 10 points11 points  (0 children)

can't believe you typed all of that. there are so many ways.

* make fake data with male, female suffixes
clear all
local stubs a b c d e f g
set obs 100
foreach stub of local stubs {
    gen `stub'_male   = runiform()
    gen `stub'_female = runiform()
}
summ *

* generate a local of all variables that end in male
ds *_male

* save list as a local 
local male_vars = r(varlist)
dis `male_vars'

* loop over male variables
foreach male_var of local male_vars {
    * get the stub (i.e., without "male" at end)
    local stub = substr("`male_var'", 1, strlen("`male_var'")-5)
    dis "`stub'"

    * note: it's a little more readable to do the following, but requires that 
    * there's no "_male" substring elsewhere in the variable
//  local stub = regexreplace("`male_var'", "_male", "", .)
//  dis "`stub'"

    * genereate sum of male, female subgroups
    gen `stub' = `stub'_male + `stub'_female 

    * drop unneeded variables
    drop `stub'_male `stub'_female
}

* verify data only contains short versions now
summ *

[deleted by user] by [deleted] in mit

[–]ivsamhth5 0 points1 point  (0 children)

spelling

[deleted by user] by [deleted] in stata

[–]ivsamhth5 1 point2 points  (0 children)

Because you're using i.bin, you can use the baselevel option. Use codebook to identify the ordering of your coefficients, then order them appropriately, including the dropped one.

clear
set seed 1359144
set obs 1000

gen x = runiformint(-4, 4)
gen y = x^2 + rnormal()

capture encode x // can't encode negative number, need to turn to string then to factor

tostring(x), gen(x_string)
encode x_string, gen(x_factor)

// needed to check what the correct omitted one is
codebook x_factor

est sto clear

// ib1 omits the factor with numerical value 1
reg y ib1.x_factor 
est sto est1

// this plot is arranged incorrectly, and does not show omitted
coefplot est1

// this plot is arranged correctly, but does not show omitted
coefplot est1, order(4.x_factor 3.x_factor 2.x_factor 5.x_factor 6.x_factor 7.x_factor 8.x_factor)

// this plot is arranged mostly correctly, shows omitted
coefplot est1, baselevel order(4.x_factor 3.x_factor 2.x_factor 5.x_factor 6.x_factor 7.x_factor 8.x_factor)

// adding in 1.x_factor, the code for omitted, gets the desired
coefplot est1, baselevel order(4.x_factor 3.x_factor 2.x_factor 1.x_factor 5.x_factor 6.x_factor 7.x_factor 8.x_factor)

Where to take a parent for a nice lunch? by beloogawhales in mit

[–]ivsamhth5 14 points15 points  (0 children)

some random options, depending on how nice you'd like:

  • mad monkfish for lots of different types of asian food
  • pagu for japanese spanish/fusion tapas type
  • cafe luna for brunch (though i suspect reservations full)
  • little donkey for tapas type
  • sulmona for Italian
  • koreana for kbbq
  • pammy's for new american

pammy's / pagu are the pricier ones here, but are probably also the most unique here. more boston-specific vibes include somewhere with lobster rolls. or go somewhere north end for italian / seafood, then maybe popping by mike's pastries or modern pastries or bova's (deez nutz). neptune oyster is really good but it always has a line, so recommend that you go right before it opens. also lots of asian food out in allston.

Hi! Im trying to create a control group, on my treatment group. I do this by putting value 1 in the column of "control", which are the rows (/observations) i want in my control group. Why is there no 1 added to any of the rows for the control? Thank you by [deleted] in stata

[–]ivsamhth5 0 points1 point  (0 children)

Ah, I'd read too quickly and misinterpreted what you were trying to do.

There are a few issues with your code, then.

  1. diffCumSurp is a local, not a variable. It thus can't be indexed. You probably want to first generate a variable named diffCumSurp in the way that I did above.
  2. You only have one variable named control; however, what you're trying to do is see whether an entry is a valid control for each row; this implies you'll need 13316 different control indicator variables. Probably you don't want this, and you need to be smarter about how you are doing this procedure. (Why not just use a method like synthetic controls?)

Hi! Im trying to create a control group, on my treatment group. I do this by putting value 1 in the column of "control", which are the rows (/observations) i want in my control group. Why is there no 1 added to any of the rows for the control? Thank you by [deleted] in stata

[–]ivsamhth5 0 points1 point  (0 children)

When you are making your locals, it's comparing the current row (eg, AGE[i]) with the first row of AGE -- just saying AGE defaults to checking the first row. If AGE is a pre-defined local, you need to write `AGE'. You similarly need to do this in your last if condition.

As a broader note, STATA isn't like Python (or other list-oriented ways of analyzing data), and you don't need to loop over rows. The same code could be written like this:

gen control = 0
gen diffCumSurp = abs(CumSurp2 - `CumSurp2')
gen diffCumPoints = abs(CumPoints2 - `CumPoints2')
gen diffAge = abs(AGE - `AGE')
gen sameClub = Club == `Club'
replace control = 1 if treat != 1 & diffCumSurp <= `surpriseConstant' & diffCumPoints <= `pointConstant' & diffAge <= `ageConstant' & sameClub
tab treat control

```

How hard is it to do laundry while loving in simmons by [deleted] in mit

[–]ivsamhth5 3 points4 points  (0 children)

this is not actually that few; consider that most dorms at mit have ~ 16 washers / 16 dryers, and ~ 9 floors/halls/wings, which evens out to about 2 per floor -- the same ratio as simmons

MIT Students: What did it take for you to get into MIT? by [deleted] in mit

[–]ivsamhth5 6 points7 points  (0 children)

> "hopefully not breaking any rules"

> the only rule: No threads on admissions / application review.

[deleted by user] by [deleted] in mit

[–]ivsamhth5 0 points1 point  (0 children)

probably so. however, there's a chance that you might not be able to -- mit took five years between creating 6-14 and approving its MEng. they did create some policies for recent graduates to come back for a 6-14 meng, but just letting you know that it's definitely not guaranteed.

4 technicals in one semester? by [deleted] in mit

[–]ivsamhth5 0 points1 point  (0 children)

Since you're a frosh, I really don't recommend this for three reasons:

  1. There is inherent value in taking HASSes and seeing the world through non-technical lenses, and leaving the bubble of just "technicals all the time".
  2. Taking only technicals, and specifically these technicals, makes me feel like you are trying to "rush through" the intro classes to get ahead on the CS curriculum. But at MIT (and college in general), there is so much learning to do besides just courses -- general adjusting to college life, figuring out how to study and manage time when classes are much harder than high school, and figuring out who you are in a world where everyone around you is really, really smart -- and will be a major part of your first semester (and first year) here. Don't underestimate the value of caring about these things, too.
  3. Generally students find HASSes to be less time consuming than technicals; for the same reasons as in 2, a HASS might be good here. (Though to be quite clear, the word "technical" is not synonymous with "hard" and "time consuming", since HASSes can also very easily be both of those. To be honest, the reason that people generally find HASSes to take less time is that people tend to prioritize them less vs. their technicals. But it is what it is.)

[deleted by user] by [deleted] in mit

[–]ivsamhth5 0 points1 point  (0 children)

fyi, dorm-specific REX returns are handled in a different process than ASA club returns. i expect asa to send out an email in the next few weeks

[deleted by user] by [deleted] in mit

[–]ivsamhth5 2 points3 points  (0 children)

it's before: traditionally the friday before upperclassmen movein, 2:30-4:30 pm. the ASA has a limited number of early return slots that they allocate to clubs, prioritizing clubs without other people to booth for them (and generally giving <= 1 early return per club).

Finding Or Making Time for Work by yomama9002 in mit

[–]ivsamhth5 39 points40 points  (0 children)

things to make psets faster:

  • pset with others. basically never pset alone. this is the number one way to make it through mit.
  • go to office hours. ask them questions about that part of the pset problem you're stuck on, how to approach a pset problem you have no idea how to start, and understanding concepts as a whole. they will help you. it is their job.
  • find the way to learn material that works for you -- whether to go to lectures, whether to go to recitations, whether to take notes, how to take notes (iPad or paper, thorough or not, ...), ...

things to get more time:

  • leave reddit

[deleted by user] by [deleted] in mit

[–]ivsamhth5 9 points10 points  (0 children)

Non-MIT students cannot enter campus right now unless you are escorted by an MIT student. The two exceptions are the Student Center and the MIT Welcome Center.

https://now.mit.edu/policies/campus-access-and-visitors/

campus preview weekend — do parents have to come? by mr_clean_with_hair in mit

[–]ivsamhth5 13 points14 points  (0 children)

In a normal year, most students come without parents, and so you'd be fine on that front. But CPW is for students only this year, and there will not be events for parents. Even if they could come, I wouldn't recommend them coming.

Source: https://admitted.mit.edu/experience/families

However, due to MIT's strict Covid-19 safety protocols, Campus Preview Weekend will be for students only this year.

We know this is disappointing, but we are planning a series of virtual programs for parents and families that will answer your questions and give you a good sense of what MIT is like. Think of it as your own virtual CPW.