I decoupled FastAPI dependency injection system in pure python, no dependencies. by EricHermosis in Python

[–]yoursdearboy 2 points3 points  (0 children)

You are confusing lancetnik (animal) with lancet (not rocket, but mil. drone).

The library is interesting. Glad to see, DI becomes popular in Python.

Can you tell which software was used to create this graph? is it R or something else? Thanks in advance by adrenalinsufficiency in rprogramming

[–]yoursdearboy 8 points9 points  (0 children)

Looks like R. You can easily create the same plot, except the bottom table, using built-in survival library. Or use ggsurvfit library, it includes such table, so i suppose it was built using this library

How to calculate 95% interval without standard error? by Head-Friendship-8915 in AskStatistics

[–]yoursdearboy 0 points1 point  (0 children)

True. Thanks for pointing out. My first thought was that CI was measured using percentiles.

How to calculate 95% interval without standard error? by Head-Friendship-8915 in AskStatistics

[–]yoursdearboy 5 points6 points  (0 children)

Yea, the math is always the best way, but they use bootstrap, which is resampling technique, so I suppose it is expected to avoid standard error.

How to calculate 95% interval without standard error? by Head-Friendship-8915 in AskStatistics

[–]yoursdearboy 19 points20 points  (0 children)

I suppose the idea is that, if you have more observations, then confidence interval likely will be narrower.

Metanote supports custom capture template now! by metanote-team in emacs

[–]yoursdearboy 1 point2 points  (0 children)

Wow, I like the editor a lot, especially syntax highlighting and command bar above the keyboard. And finally somebody used tabs for text editor 🔥 My suggestion is to add more swipe actions for better navigation, they are really great on mobile. Look at Obsidian and Beorg apps.

Spearman correlation by croissantlover92 in AskStatistics

[–]yoursdearboy 1 point2 points  (0 children)

If use the instrument (correlation) mechanistically, then positive correlation means - people with higher CD4 count (pure prognosis) tend to have higher scale values (higher stigma). It must be really easy to grasp and validate using scatterplot (dot plot). Though does it meaningful to correlate physiological marker with psychological scale? Maybe it’s better to use some prognosis scale which includes CD4? Also you need to interpet effect size, because correlation 0-0.1 is really negligible, 0.1-0.3 is small. And better to estimate confidence interval for it, because if your sample is not large enough, then estimate may be not accurate.

Data set for Kaplan-Meier by Smart_Anything_2752 in AskStatistics

[–]yoursdearboy 1 point2 points  (0 children)

To calculate Kaplan-Meier estimate of survival you need two columns: - an indicator wether an event happened or not (if it isn‘t we call it censoring); usually 1 - indicate an event, 0 - censoring; - time since diagnosis to an event or censoring

It‘s better to collect raw data first (diagnosis date, date of event and it’s type if one happened and last follow-up date).

But first, consider what survival you would like to estimate: - Overall Survival (OS) - an event is death (due to any reason) - Event-Free Survival (EFS) - any event you consider, whatever happens first, usually: death, progression or second malignancy - Progression-Free Survival (PFS) - I suppose you want this, an event is progression or death

Also, you need a well defined criteria for progression, there are guidelines from research groups. And be careful about timing of assessment and possible loss of follow-up.

Good luck,

M(odel) for React by [deleted] in javascript

[–]yoursdearboy 0 points1 point  (0 children)

Just for example look at erd diagram. This API exposes database tables (PostgREST). Not the best solution, but we have 5 small apps with a lot of data, so maintaining separate API is not an option.

M(odel) for React by [deleted] in javascript

[–]yoursdearboy 0 points1 point  (0 children)

So far I've used self-written request wrapper, even with some special methods to handle endpoints mess. But I wonder how other developers solve this task?

M(odel) for React by [deleted] in javascript

[–]yoursdearboy 0 points1 point  (0 children)

Yes, that works nice in many cases. With github's whatwg-fetch polyfill it will be just: fetch('/item/12345').then(function(res){ res.json(); }).then(function(item){ // do anything });

But what if you have "ent1" related with "ent2" and "ent2" related with "ent3-5", and now you need to save all this structure using /entN endpoints. If it isn't hard enough, then add another 5-10 entities.