search for: doserate

Displaying 4 results from an estimated 4 matches for "doserate".

Did you mean: moserate
2023 Dec 18
3
Function with large nested list
Hello list, I want to make a large rulebased algorithm, to provide decision support for drug prescriptions. I have defined the algorithm in a function, with a for loop and many if statements. The structure should be as follows: 1. Iterate over a list of drug names. For each drug: 2. Get some drug related data (external dataset). Row of a dataframe. 3. Check if adaptions should be made to
2009 Aug 22
0
forest (meta) editing text
OK - I've been doing some work on getting a forest plot or two together for a sub-group analaysis. Thats the crucial thing - because its a sub-group analysis rather than a meta-analsysis and all the forest (meta) and forestplot (rmeta) instructions assume you are doing a meta-analysis. I found rmeta didn't play nicely for me so I'm using the meta package with forest. Here's some
2010 May 02
2
Calculation error
...cl=0.046; tau=6; t=3; F=1; wtkg <- wt/2.2 # convert lbs to kg vd.pt <- wtkg * vd # compute weight-based vd (L) cl.pt <- wtkg * cl # compute CL (L/hr) k <- cl.pt/vd.pt # compute k (hr^-1) cave <- round((twhi - twlo)/log(twhi/twlo),2) doserate <- (cl.pt * cave)/F # maintenance dose (Dm) total_dose_tau <- round(doserate * tau,0) Cmax <- total_dose_tau/vd.pt Cmin <- Cmax * exp(-k * tau) AR <- 1/(1 - exp(-k * tau)) Cmaxss <- Cmax * AR Cminss <- Cmin * AR Cfluctss <- (Cmaxss - Cminss) Ct &...
2004 Jan 22
4
Fitting compartmental model with nls and lsoda?
...ribution here # is hopefully to provide a starting point in "R" for people who # have a pharmacokinetic modelling background. # This text can be "cut and pasted" into R, or read in as a "source" file # There are two differential equations in the system: # V*dC/dt = Doserate - C*Cl + k21*A2 - k12*V*C # dA2/dt = k12*V*C - k21*A2 # C is a dependent variable (Concentration in the central compartment) # A is a dependent variable (Amount in the second compartment) # t is the independent variable (time) # V is the volume of the central compartment # Cl is the clearance fro...