Introduction

일반적으로 anesthesiology practice를 하며 general anesthesia에 사용하는 propofol + remifentanyl (+ volatile gas) 조합에서 루틴하게 약물을 사용하지만 실제 약동학 모델을 살펴보면 환자의 plasma & effect site concentration은 천차만별인것을 알 수 있습니다.
아산펌프의 trial simulation기능을 활용하면 되지만. 다양한 변수에 대해 즉각적인 결과를 얻기 위해 다음과 같은 엑셀 파일을 만들었습니다.
처음 약물 사용하는 저년차 전공의의 교육용으로 유용할 것으로 보입니다.

모델 사용

Propofol - 슈니더 모델
Remifentanyl - 민토 모델

을 사용하여 환자의 데이터를 입력하면 일반적인 practice에서 예측가능한 약동학적 농도 변화를 알 수 있게 만들었습니다.

data input에는 patient parameter를 입력하고

약물 사용에 대해선

  1. propofol Bolus + remifentanyl continuous infusion (Varing rate; initial to maintainance rate)
  2. propofol + remifentanyl both Bolus and continuous infusion (not TCI mode, manual rate control)

의 조건으로 만들었습니다.

모델의 parameter는 계산식을 바탕으로 엑셀로 만들었지만 오류가 있을 수 있는 점 참고 바라겠습니다.

Routine_induction_v1.0.xlsx
57.4 kB

반응형

created by: ANEOH
date: 2024-01-29 20:22
tags:

  • "#API"
  • "#ChatGPT/API"
  • "Obsidian"
  • "Blog/post"

Needs

  1. ChatGPT를 이용함에 있어 사용량이 많지 않지만 ChatGPT 4.0이 필요함.(GPT 4.0; advanced data analysis 등)
  2. ChatGPT plus Billing price ($20; 약 27,000원) 부담스러움
  3. Obsidian과 ChatGPT의 integration이 필요함.

Introduction

  1. ChatGPT plus(이후 Plus)는 GPT 4.0 & image and audio processing 및 다양한 cusomized model을 사용할 수 있는 장점이 있습니다.
    1. ChatGPT pricing plans for regular users
  2. 하지만 사용자에 따라 사용량이 많지 않은 경우 아래의 $20/mo의 pricing은 부담스러울 수 있습니다.
  3. 또한 ObsidianPlugin을 통해 ChatGPT를 사용하는 경우 API를 요청하고 Plus와 API는 다른 Billing process를 가지고 있습니다. (이중지출가능성)
  4. Custom Frame plugin을 이용해 web based 사용을 할 순 있지만 조금 아쉬운 부분이 있습니다. (https://statisticsplaybook.com/chatgpt-in-obsidian/ ;참고바랍니다)
  5. Plus만이 GPT-4의 유일한 사용방법이 아니고 사용량에 따른 유연한 선택지가 있음을 알려드리기 위한 글입니다.
  6. 하지만 단점으로 API -> Obsidian plugin을 사용하는 경우 Text-based 이용만 가능.

Biling

  1. ChatGPT API pricing
    1. https://openai.com/pricing 참조하시고 주요 내용을 보자면
    2. GPT-4 turbo model pricing plan
    3. GPT-3.5-turbo pricing plan
    4. 로 모델과 사용량에 따른 청구를 확인할 수 있습니다.
  2. 토큰(Token)?
    1. 여기서 토큰이란 자연어 처리에 필요한 단어의 조각을 의미합니다.
    2. 1 token = about 4 English characters or 0.75 word이고
    3. 한글 텍스트의 경우 1문자당 2~3개의 토큰에 해당합니다.
    4. 대략 3배 정도 더 많은 토큰사용을 함을 알 수 있습니다.
    5. https://platform.openai.com/tokenizer Token 수 계산 web.
  3. 토큰 비용 절감 전략
    1. 명확한 언어 사용
    2. 한글 보다 영어 사용
    3. 적합한 모델 사용(4.0버전이 필요한 경우에만 사용)
    4. 답변의 maximum token 제한
    5. ChatGPT API페이지의 Biliing 모니터링 or Limitation
  4. 제 전략은 위의 Custom frame plugin을 통해 무료 3.5버전 or Gemini PRO(google BARD)을 주로 사용하고 필요한 경우 API를 통해 "GPT-4.0 Turbo" 모델을 사용하는 것입니다. -> Custom frame사용의 경우 링크한 블로그를 참조 부탁드립니다.

Settings

API setting

  1. https://platform.openai.com/docs/overview 에서 가입을 진행해 줍니다.
  2. Setting/Billing에서 카드정보 등록 후 Balance 충전. 및 Limitation 설정
    1. Budget limitation
    2. 한달 Budget $20 and $10 초과 시 메일 발송
    3. 참고) ROK로 국가설정 후 결제시 부가세 10% charge 됩니다. Alaska등 일부 미주의 경우 Sales tax가 없으므로 참고바랍니다.
  3. 메뉴/API key에서 API키 생성하여 저장합니다.
    1. 한번 보여진 API키는 다시 조회되지 않는점 참고바랍니다.Obsidian setting
  4. Obsidian/Community_plugin/Copilot 검색 -> 설치 -> 세팅
  5. Temperature는 창의적인 대답에 대한 기대값입니다. 기본값은 0.1로 올라갈수록 창의적이지만 정확도가 떨어지게됩니다.
  6. Token Limit으로 대답의 토큰 수를 제한할 수 있습니다.
  7. Default model은 GPT-4 TURBO로 세팅하였습니다. (간단한 작업은 web-based 3.5버전 사용) or 필요시 Gemini PRO API / Azure GPT등 필요한 Model을 사용하시면 됩니다.
    1. 이 창에서는 Stop generating, New chat, Note에 저장, Chat or QA, 현재 노트를 프롬프트에 불러오기 등으로 활용할 수 있습니다.

Results

  1. Usage Page
  2. 사용량과 청구 페이지입니다. 이런 식으로 사용량에 비례한 청구시스템이고 잔고를 그때그때 채워 사용하는 방식입니다.
  3. 다양한 기능활용을 위한 Assistant API나 Fine-tuning에 대한 내용은 후에 기회가 된다면 설명드리겠습니다.
반응형

to measure the internal consistency and reliability of a questionnaire or survey

* 측정한 설문이 개인별 일관성 있게 측정되었는지 검사

 

H0

1. 각 항목은 동일한 주제를 측정하는 것이다.

2. 각 항목의 중요도는 모두 동일하다.

각 값의 interpretation

Packages

- install.packages("psy") 
-> library(psy)
-> cronbach(data)

or 

- install.packages("psych")
-> library(psych)
-> a <- alpha(data)
-> a$total
*이 때의 raw_alpha가 Cronbach's alpha를 의미 함.

or 

- install.packages("ltm")
library(ltm)
cronbach.alpha(data, Cl=True)
##Cl=True means to show 95% confidence interval

반응형

'Statistics' 카테고리의 다른 글

R on VScode - 1  (0) 2023.06.01
Monitor: LG 34GN850 - WQHD+ 3440x1440 해상도, DP 165hz지원, HDMI 2.0 85hz지원
PC1 : Macbook pro 14 M1pro
PC2: Windows PC

맥북 단독으로 쓰던 시스템을 윈도우 PC를 하나 더 추가하였는데 화면과 모니터 그리고 DAC연결을 각각하는것이 번거로워 찾아보던 중 DP 1.4를 지원하는 KVM 스위치를 찾았습니다.

 

알리익스프레스에서 현재 저렴한 가격에 판매중이어서 구매하였고, 사용 결과 만족스럽습니다.

 

후면 모두 DP 1.4 고해상도 고주사율 지원을 하며 HDCP, EDID 또한 정상적으로 읽힙니다.

 

USB송수신은 USB2.0으로 대역폭 문제가 있지만 키보드 마우스 입출력과 DAC만을 이용하는데는 충분해 보입니다.

 

https://ko.aliexpress.com/item/1005005071734927.html?spm=a2g0o.productlist.main.1.1858545bLs1fM6&algo_pvid=26b26700-19fb-4e0e-a46e-01051c48f55e&algo_exp_id=26b26700-19fb-4e0e-a46e-01051c48f55e-0&pdp_npi=3%40dis%21KRW%2173501%2137486.0%21%21%21396.84%21%21%402100b1a616891566467446008d0776%2112000031525781767%21sea%21KR%212084107085&curPageLogUid=z1dctPajfdX0 

 

https://ko.aliexpress.com/item/1005005071734927.html?algo_exp_id=26b26700-19fb-4e0e-a46e-01051c48f55e-0&algo_pvid=26b26700-19fb-4e0e-a46e-01051c48f55e&curPageLogUid=z1dctPajfdX0&pdp_npi=3%40dis%21KRW%2173501%2137486.0%21%21%21396.84%21%21%402100b1a616891566467446008d0776%2112000031525781767%21sea%21KR%212084107085&spm=a2g0o.productlist.main.1.1858545bLs1fM6

AliExpress.com에 오신것을 환영합니다 로그아웃 회원가입 로그인   내 주문 내 코인 메시지 센터 결제 위시리스트 내 쿠폰

ko.aliexpress.com

 

kvm switch

 

후면단자부터

1. usb 5v dc 전원, 2. video output, 3. PC1 USB input, 4. PC1 Video output, 5. PC2 USB input, 6. PC2 Video output

 

전면

switch, USB input 1~4 (Mouse, keyboard, DAC 연결)

 

반응형

공식 홈페이지에서 드라이버를 제공하지만, win11환경에서 제대로 인식되지 않은 문제를 확인하였습니다. 

 

해당 제품의 사용 칩셋은 Realtek 8822BE (802.11AC)제품으로

윈도우 장치관리자에서 칩이 잡히지 않는다면 수동으로 Realtek 드라이버를 잡아주게 되는 경우 정상 작동합니다. 

반응형

세탁기

24~25kg 사이즈의 LG 세탁기 구매 가이드에 대한 설명입니다. 워시타워/일반트롬모델 제외

 

모델명은 Fx00xxx의 구성을 하게 됩니다.

23~25kg 모델의 경우 FX23~25xxx.

그 19~21kg 모델의 경우 FG19~21xxx.

 

뒤의 xxx 세 자리는 색(E-Beige, W-white, G-green-, V-modern steinless, K- Black steinless)과, 스팀워시(S)/자동세제기능(A)/기능없음(N)이며

마지막자리는 다양한 의미를 내포하고 있는데 문자열이 추가될 수록

1. 도어 테두리 색(E,W,G,V,K의 경우)

2. 앞자리 VNx모델의 경우 내부 세탁조의 재질스테인레스(T) 없으면 플라스틱(일반 트롬모델)

3. X(트윈워시)

4. F(키높이 수납함)

으로 구성되게 됩니다.

 

ex)FX25EA의 경우 오브제컬렉션 25kg 베이지, 세제 자동투입 모델입니다.

FX25EA

ex2)FX25GAF - 오브제 컬렉션 25kg, 그린, 세제자동투입 + 키높이 수납함 포함.

FX25GAF

ex3)FX25GSGX - 오브제컬렉션 25kg, 그린, 스팀, 도어테두리 그린 + 트윈워시.

ex4)FX24VNT - 오브제컬렉션 24Kg, 모던스테인레스, 내부수조 스테인레스.

 

추가적으로

FX25GA + -KG의 경우 스태킹키트 포함 모델입니다.

 

건조기 

건조기의 경우도 세탁기와 마찬가지로 Rx00xxx의 형태이고

19kg 모델은 RG19xxx

>19kg 모델은 RD20~21xxx의 형태입니다.

뒤의 문자배열은 세탁기와 동일하고

 

ex1) RD20KNT - 20kg 오브제컬렉션 건조기, 블랙 스테인레스, 추가기능없음, 내부 건조통 스테인레스

RD20KNT

반응형

'기타' 카테고리의 다른 글

Image DPI converter link  (0) 2023.02.20
벤츠 인증 엔진오일 링크  (0) 2022.12.30
Macbook pro, m1pro (2021)

R Studio 사용을 고려하였지만, package 사용 간편함이나, 이미 세팅한 zsh터미널 활용, 그리고 git등의 범용적 사용 고려했을때, VScode에 세팅하는 것이 나을 것으로 보여 VScode(microsoft)로 R 을 사용하기로 하였다.

 

R 4.3.0v.

https://cran.r-project.org/src/base/R-4/

 

Index of /src/base/R-4

 

cran.r-project.org

https://code.visualstudio.com

 

Visual Studio Code - Code Editing. Redefined

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications.  Visual Studio Code is free and available on your favorite platform - Linux, macOS, and Windows.

code.visualstudio.com

에서 어플리케이션 다운로드 후

 

extension에서 'R extension for Visual studio code', 'R debugger for VS code', 'Excel viewer' 등을 설치하였고,

 

https://github.com/REditorSupport/vscode-R/wiki/Getting-Started

 

Getting Started

R Extension for Visual Studio Code. Contribute to REditorSupport/vscode-R development by creating an account on GitHub.

github.com

에서의 항목을 따르면 되겠습니다.

To enjoy the full R development experience, we recommend that you install all of the following packages:

  • vscode-R: Provides R language service, R Markdown, and interactivity between VS Code and R terminal.
  • languageserver: An R package that implements the Language Server Protocol for R to provide a wide range of language analysis features such as auto-completion, function signature, documentation, symbol highlight, document outline, code formatting, symbol hover, diagnostics, go to definition, find references, etc.
  • radian: A modern R console that corrects many limitations of the official R terminal and supports many features such as syntax highlighting and auto-completion.
  • VSCode-R-Debugger: A VS Code extension to support R debugging capabilities.
  • httpgd: An R package to provide a graphics device that asynchronously serves SVG graphics via HTTP and WebSockets. vscode-R uses httpgd to provide an interactive plot viewer.
  • rmarkdown: An R package and format for creating reproducible and narrative-driven data analyses. vscode-R provides tooling to edit, run, and knit Rmarkdown files.
  • Pandoc (optional): A powerful document conversion tool. vscode-R uses this to render help previews when users hover over R code.

 이 중 R에서

install.packages('"languageserver")

공유된 객체 '/Library/Frameworks/R.framework/Resources/modules//R_X11.so'를 로드 할 수 없습니다:

라는 에러 메시지를 확인할 수 있는데

 

이 경우

터미널에서

brew install --cask xquartz

로 설치하는 경우 해결할 수 있습니다.

반응형

'Statistics' 카테고리의 다른 글

Cronbach's alpha in R  (0) 2023.09.11

 

Fresenius Pilot Anesthesia A2 Infusion Pump Service Manual.pdf
0.44MB

반응형

+ Recent posts