roman_max ☆ Russia, 2020-06-10 19:32 (1778 d 01:50 ago) Posting: # 21523 Views: 6,247 |
|
Dear Helmut, first of all thank you for the efforts in developing such useful package. I'm trying to implement it in my projects, but have faced with some troubles. Im also have tried to address my issues within the forum but it seems that there are no information for my case. So, my question is - should I specifically prepare my datafile in .xlsx in order to use it inside the package, and if yes how to do it step-by-step to finally get the appropriate output file for reporting? It's OK with reproducing results for internal dataset like DS01 and others but errors occured when I use imorted data from excel file (like argument of non-zero length, etc). I'm not so experienced with R programming, only a few skills. Your advice could be of a great value for me. |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2020-06-10 20:14 (1778 d 01:08 ago) @ roman_max Posting: # 21524 Views: 4,873 |
|
Hi roman_max, ❝ first of all thank you for the efforts in developing such useful package. Welcome (also on behalf of Michael and Detlew). ❝ So, my question is - should I specifically prepare my datafile in .xlsx in order to use it inside the package, and if yes … Try this in the R-console (I don’t recommend R Studio): library(replicateBE) Your browser opens. Click on • User guides, package vignettes and other documentation. and then on replicateBE::vignette or HTML The vignette opens in the browser. Click on Data structure in the table of contents. This gives what you need (I hope). If you are online, direct link to the vignette. ❝ … how to do it step-by-step to finally get the appropriate output file for reporting? It's OK with reproducing results for internal dataset like DS01 and others but errors occured when I use imorted data from excel file (like argument of non-zero length, etc). Hhm, strange. I thought that we trapped all possible errors. If you discovered a bug, great, we will correct it. Please give the following: Version of R and replicateBE, operating system. Post also the error message (including the function call which led to it). If you are not successful, send your file to [email protected] — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
roman_max ☆ Russia, 2020-06-22 19:06 (1766 d 02:16 ago) @ Helmut Posting: # 21561 Views: 4,807 |
|
Hi Helmut, sorry for my delayed response, had to go through my big country ![]() ❝ Welcome (also on behalf of Michael and Detlew). Of course yes, and thanks to all of you. After your hints and explainations I've managed to overcome my misunderstanding with syntax, there were my errors. So now all things are fine. Regards, Roman |
thalita_m ☆ Brazil, 2022-09-17 07:28 (949 d 13:54 ago) @ Helmut Posting: # 23303 Views: 3,774 |
|
Hi Helmut! First, as stated by roman_max, thanks you, Michael and Detlew for all efforts in this package! So, I am dealing with some troubles when I run the methods A and B in the package to analyse a pivotal study and calculate CVw I prepare my datafile as descripted on "DataStructure" in help(p=replicateBE) and save as a CSV: subject, period, sequence, treatment, PK, logPK Following the example of GitHUB, I am using the code: cabo <- read.csv(file="Cabo_Outcome.CSV", head=TRUE, sep=",") If I try to run the dataset DS01 it works perfectly. I'm not so experienced in R, I'm just a begginer. Your advice and help would be of great value! Thanks in advance! |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2022-09-17 13:02 (949 d 08:20 ago) @ thalita_m Posting: # 23305 Views: 3,731 |
|
Hi Thalita, ❝ First, as stated by roman_max, thanks you, Michael and Detlew for all efforts in this package! Welcome. ❝ So, I am dealing with some troubles when I run the methods A and B in the package to analyse a pivotal study … ❝ ❝ I prepare my datafile as descripted on "DataStructure" in help(p=replicateBE) and save as a CSV: subject, period, sequence, treatment, PK, logPK So far, so good. You don’t need the column logPK . By default the library will use values given in the column PK and transform the data internally in full numeric precision.❝ Following the example of GitHUB, … Such an example is not given on GitHub. ![]() ❝ … I am using the code: ❝ ❝ ❝ ❝ ❝ ❝ ❝ A pivotal study with five subjects? Your data are extremely imbalanced (four subjects in sequence RTTR and one in sequence TRRT). Pretty unusual. If you read the file in 🇷 you get
subject , period are integers and sequence , treatment are characters. For the linear model they have to be factors – and many more preparations have to be done before the data can be used.1❝ ❝ ❝ ❝ By design. ![]() method.A(..., data = cabo) . Although that’s possible in principle, I don’t recommend it. Let the library do the import as explained in help(method.A) .
To show the results:
I recommend to print to a file (that’s the default of the functions).
Cabo_Outcome_ABEL_MethodA.txt :
❝ … and calculate CVw The library will not give you CVw.2 In your full replicate design you get CVwT and CVwR. It’s a bit tricky if you are really interested in it (works also for a partial replicate design):
Hope that helps. If not, feel free to ask.
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |