bear v1.0.0 for R - first impressions [🇷 for BE/BA]

posted by Helmut Homepage – Vienna, Austria, 2008-07-14 16:02 (5737 d 01:00 ago) – Posting: # 2025
Views: 56,576

Dear Yung-jin!

❝ ❝ I failed in reading in the NCA test file. I tried it with tabulator and semicolon as field separators and got an error:

❝ ❝ Error in readChar(con, 5L, useBytes = TRUE) :

❝ ❝   cannot open connection


❝ We have not tested with a .csv file using semicolon(;) before. Please try with comma(,) to see if it can work normally. I just tried with semicolon as field separator, it can cause error.


Hhm, I failed with colon as well (file: [path to file]/TEST.CSV).
,subj,drug,seq,prd,Cmax,AUC0t,AUC0INF,LnCmax,LnAUC0t,LnAUC0INF
1,1,1,2,2,1739,14445.27,14933.21,7.461066,9.578123,9.611343
2,2,1,1,1,1481,12516.14,13185.57,7.300473,9.434774,9.486878
3,3,1,2,2,1780,15371.4,16032.71,7.484369,9.640264,9.682386
4,4,1,1,1,1374,11063.1,11669.01,7.225481,9.311371,9.364692
5,5,1,2,2,1555,13971.45,14557.62,7.349231,9.544771,9.58587
6,6,1,1,1,1756,15376.35,15964.84,7.470794,9.640586,9.678144
7,1,2,2,1,1633,12293.9,12972.87,7.398174,9.416858,9.470616
8,2,2,1,2,1837,15298.65,16210.46,7.515889,9.63552,9.693412
9,3,2,2,1,2073,15184,15691.62,7.636752,9.627998,9.660882
10,4,2,1,2,1629,13981.65,14650.8,7.395722,9.545501,9.592251
11,5,2,2,1,1385,11851.62,12550.94,7.233455,9.38022,9.437551
12,6,2,1,2,1522,13837.73,14343.58,7.327781,9.535154,9.571057


Importing the same file directly with R worked.
data <- read.table("[path to file]/TEST.CSV", header=TRUE,
                   sep=",", na.strings="NA", dec=".",
                   strip.white=TRUE)
print(data)
    X subj drug seq prd Cmax    AUC0t  AUC0INF   LnCmax  LnAUC0t LnAUC0INF
1   1    1    1   2   2 1739 14445.27 14933.21 7.461066 9.578123  9.611343
2   2    2    1   1   1 1481 12516.14 13185.57 7.300473 9.434774  9.486878
3   3    3    1   2   2 1780 15371.40 16032.71 7.484369 9.640264  9.682386
4   4    4    1   1   1 1374 11063.10 11669.01 7.225481 9.311371  9.364692
5   5    5    1   2   2 1555 13971.45 14557.62 7.349231 9.544771  9.585870
6   6    6    1   1   1 1756 15376.35 15964.84 7.470794 9.640586  9.678144
7   7    1    2   2   1 1633 12293.90 12972.87 7.398174 9.416858  9.470616
8   8    2    2   1   2 1837 15298.65 16210.46 7.515889 9.635520  9.693412
9   9    3    2   2   1 2073 15184.00 15691.62 7.636752 9.627998  9.660882
10 10    4    2   1   2 1629 13981.65 14650.80 7.395722 9.545501  9.592251
11 11    5    2   2   1 1385 11851.62 12550.94 7.233455 9.380220  9.437551
12 12    6    2   1   2 1522 13837.73 14343.58 7.327781 9.535154  9.571057


Is bear looking at a particular path – differently from the one set in R?
BTW, somewhere it should be documented which format of both numbers and field separators are allowed/needed. Although everybody using R knows that the decimal separator is the period '.', converting CSV-files from some localized Excel versions can be cumbersome. For instance the German standard for numbers uses the comma ',' as a decimal separator.
I think the only 'save' field separators would be blank or tabulator.

❝ ❝ - IMHO a posteriori power is meaningless.


❝ Just for the purpose of submission to regulatory agent (at least in Taiwan).


Interesting!
The only country I knew before asking – sometimes – for a posteriori power was Greece.

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Thread locked

Complete thread:

UA Flag
Activity
 Admin contact
22,957 posts in 4,819 threads, 1,636 registered users;
109 visitors (0 registered, 109 guests [including 10 identified bots]).
Forum time: 16:02 CET (Europe/Vienna)

With four parameters I can fit an elephant,
and with five I can make him wiggle his trunk.    John von Neumann

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5