534 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
16
views
Imputation with mice for multilevel data that is only missing level 1 values
This is my first time attempting data imputation with the mice package. I've read some tutorials but am still confused about how to apply the different examples to my data.
I have a multilevel dataset ...
0
votes
0
answers
70
views
Issues with multilevLCA 2.1.0
I recently encountered an issue with multilevLCA that I suspect may be related to the latest package update. Until a couple of days ago, running multilevLCA 2.0.1 locally on RStudio worked like a ...
0
votes
0
answers
54
views
Why won't my multilevel model converge in R (lme4)?
i have a multilevel model at firm and local authority district level, with both firm level and LAD level predictors. It is a binary logistic model, the outcome is presence of women on the board of a ...
0
votes
0
answers
41
views
Linear Mixed (Multilevel) Model: Predictors and outcomes at different timepoints
I'm analysing data from a randomised controlled trial, and want to predict a change in an outcome (reduction in anxiety scores from Baseline to Week 4), based on two predictors measured at the two ...
0
votes
0
answers
37
views
Include chapter number function changed all my already inserted captions, how to use stand alone caption styles?
I want to preserve the tables caption with the style from "1 to ....", i.e. Table 1.
The problem is that when i include the chapter number check box, the captions already inserted in chapter ...
1
vote
1
answer
46
views
Pandas multilevel Pivot/Transpose
I've looked thru countless examples, but I cannot figure out how to do the below.
Any tips would be greatly appreciated
Original df (note the multilevel)
Gender A B
sum ...
1
vote
1
answer
39
views
Combine two level headers in df based on condition
I have the df from the excel file that has double headers. The df looks like this but the first two rows are actually headers:
Name
Unnamed
Age
Unnamed
Country
Unnamed
Is there a way to combine them ...
0
votes
0
answers
28
views
Filter Pandas dataframe column based on values in second column [duplicate]
I have a pandas data frame
Column A
Column B
Report 1
Vendor A
Report 1
Vendor B
Report 2
Vender C
Report 2
Vendor B
Report 3
Vendor A
Report 3
Vendor C
I'm looking for a way to exclude any reports ...
2
votes
1
answer
194
views
Pandas: change multiple level column name to one level
I have a dataframe with two-level column names as:
ID Value
A B
----------------
1 6
2 5
3 4
4 3
5 2
6 1
I want to change the column head with:
column_mapping = {
('ID', 'A') : '...
1
vote
1
answer
115
views
Multi-Level Header in Pandas DataFrame
I have the following table in a csv file:
wi_document_id
wir_rejected_by
wir_reason
wir_sys_created_on
Int0002277
Agent_1
Time out
3/8/2024 11:18:10 AM
Int0002278
Agent_1
Time out
2/26/2024 12:18:16 ...
2
votes
4
answers
534
views
Multi-level sorting in Excel with ignoring empty cells
Multi-level sorting would probably be suitable for this task if there was an option "ignore empty cells".
I need to sort the rows so that the sorting for column A ignores empty cells, and the sorting ...
-1
votes
1
answer
70
views
Instance Variables Are Not Shared Between Processes in Python
I have a big problem with Multi Processing. in this case I have a
1.Main Class in Main Process
2.Foo Class in Another Process
I Have To Change Some Variables Inside of Process2 With Main Process.
How ...
2
votes
1
answer
175
views
Discrepancy between lme4 sample size and complete case dataset?
I'm currently estimating a hierarchical linear model (HLM) using lme4. My entire dataset has 367 observations. lme4 estimated my model using 341 observations - I assumed some were dropped due to ...
2
votes
1
answer
81
views
How to add dfs with different number of column axis levels, but sharing same axis names?
I have two multi-level column dataframes:
data = {
'A': {
'X': {'Value1': 2, 'Value2': 1},
'Y': {'Value1': 2, 'Value2': 3}
},
'B': {
'X': {'Value1': 10, 'Value2': ...
0
votes
2
answers
3k
views
Linking figure caption number to chapter number in a different style than Heading 1 in Word
I am using a customized thesis template where the styles are manually created. However, there are no standard Word styles, such as "Heading X." I am trying to include chapter numbers in my ...